Python in the request of post requests requests.exceptions.SSLError:

Today, send a post request, an error

requests.exceptions.SSLError: HTTPSConnectionPool(host='user.zaful.com', port=443): Max retries exceeded with url: /m-users-a-act_sign.htm (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)')))

 

Solutions, when requested, to close the link ssl 'verify = False

url="https://user.XX.com/m-users-a-act_sign.htm"
        data={'pipeline':"zf",'email':'[email protected]','password':'zhang123'}
        head={"Accept": "application/json, text/javascript, */*; q=0.01"}
        result=requests.post(url,data=data,headers=head,verify=False)

  

 

The login is successful, the problem is solved

 

Guess you like

Origin www.cnblogs.com/chongyou/p/11512642.html