Python requests模块提交请求,不同content-type对应的post方法记录
1.'content-type':'application/x-www-form-urlencoded'
data参数提交
requests.post(url,headers={'content-type':'application/x-www-form-urlencoded'},data='f=10')
requests.post(url,headers={'content-type':'application/x-www-form-urlencoded'},data={'f':10})
2. 'content-type':'application/json'
data参数提交
Python requests模块提交请求,不同content-type对应的post方法记录最先出现在Python成神之路。
共有 0 条评论