一、如何发送post请求
1、需要测试的接口url
2、接口的请求参数(header、 param)
代码如下(示例):
import requests
url = "http://v.juhe.cn/exp/index"
header = {
"content-type”:"application/json"
}
param = {
"key":"5c14a269******81ee388a"
"com":888,
"no":8928288282111
}
resp = requests.post(url,headers=header,json=param