1. 程式人生 > >python用requests傳送https的請求時,有安全驗證

python用requests傳送https的請求時,有安全驗證

python用requests傳送https的請求時,有安全驗證,將驗證設定為false 即可verify=False

content = {‘login’: ‘1234567890’,
‘password’: ‘123456’}
r=requests.post(‘url…login’,verify=False,data=content)
print(r.status_code)