python 使用requests库post请求报错问题解决

2019-03-27  本文已影响0人  抓虫的蜗牛
headers = dict()
headers.setdefault("Content-Type","application/json;charset=UTF-8")
headers.setdefault("sign",sign)
headers.setdefault("timestamp",timestamp)
response = requests.post(loginUrl,body_data,headers)
print("result---- %s" % response.text)
response = requests.post(url=loginUrl,json=body_data,headers=headers)
上一篇 下一篇

猜你喜欢

热点阅读