接口请求函数
# -*- coding:utf-8 -*-
import requests
import json
data = {
"param1": "1234", "param2": "1234" }
data = json.dumps(data, ensure_ascii=True) #'content-type': 'application/json'时需要此操作
headers = {
'content-type': 'application/json'}
r = requests.post("http://10.248.175.221:8080/Algorithm_FaceRec/AppKey/decodeAppkey",
data = data,headers=headers)
received_json_data = json.loads(r.text, encoding