postman 成功,python requests 失败
生活随笔
收集整理的這篇文章主要介紹了
postman 成功,python requests 失败
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
postman?post請求 成功,python requests?post請求 失敗
原來代碼
r2=requests.post(url=url,data=params,headers=headers, verify=False, timeout=15)return r2data參數改成json就可以了:
r2=requests.post(url=url,json=params,headers=headers, verify=False, timeout=15)return r2總結
以上是生活随笔為你收集整理的postman 成功,python requests 失败的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Jenkins+cocoapods+pg
- 下一篇: Python 操作Word文档(一)--