|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
代码如下:
- import requests
- postdata = {'name':'测试账号',"passwd":'测试密码',}
- rst =requests.post('http://www.iqianyue.com/mypost', data=postdata)
- print(rst)
复制代码
报了以下异常:
- requests.exceptions.SSLError: HTTPSConnectionPool(host='www.iqianyue.com', port=443): Max retries exceeded with url: /mypost (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')))
复制代码
请问大家怎么解决
- >>> import requests
- >>> postdata = {'name': '=滴滴滴=','pass': '123456'}
- >>> rst =requests.post('http://www.iqianyue.com/mypost', data=postdata,verify=False)
- >>> print(rst)
- <Response [200]>
复制代码
这样呐?再试试
|
|