示例#1
0
def post(uri, body=None):
    #body1 = json.dumps(body)
    ses = Login.login()
    url = "http://192.168.1.115:8088" + uri

    res = ses.post(url, json=body, verify=False)
    return res
示例#2
0
def get(uri):
    ses = Login.login()
    url = dirConfig.host + uri
    res = ses.get(url, verify=False)
    return res
示例#3
0
def post(uri, body=None):
    ses = Login.login()
    url = dirConfig.host + uri
    res = ses.post(url, json=body, verify=False)
    return res
示例#4
0
def get(uri):
    ses = Login.login()
    url = "http://192.168.1.115:8088" + uri
    res = ses.get(url, verify=False)
    return res