当我使用python请求模块发送发布请求时,我想超越SSL验证,但是即使添加了参数verify=False
,它也给我一个错误:
我的要求:
response = session.request(rest_body["method"], url, data=data,
headers=headers, proxies=PROXIES,
cookies=req_cookies, verify=False)
错误(添加了新行):
HTTPSConnectionPool(host='', port=443): Max retries exceeded with url: /oauth/token
(Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object
at 0x7f174234e5f8>: Failed to establish a new connection: [Errno 111]
Connection refused',))
此错误是什么意思,我该如何避免呢?