当我尝试运行一个示例脚本,该脚本将SOAP请求发送到HTTPS URL以下错误“
File "H:/PyCharm/Sample.py", line 94, in <module>
response = requests.post(url, data=body, headers=headers)
File "C:\Python27\lib\site-packages\requests\api.py", line 110, in post
return request('post', url, data=data, json=json, **kwargs)
File "C:\Python27\lib\site-packages\requests\api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Python27\lib\site-packages\requests\sessions.py", line 488, in request
resp = self.send(prep, **send_kwargs)
File "C:\Python27\lib\site-packages\requests\sessions.py", line 609, in send
r = adapter.send(request, **kwargs)
File "C:\Python27\lib\site-packages\requests\adapters.py", line 485, in send
raise ProxyError(e, request=request)
requests.exceptions.ProxyError: HTTPSConnectionPool(host= <myhost>,port=443)Max retries exceeded with url: <myurl>`
答案 0 :(得分:0)
我无法使用请求或urllib3或SOAPpy将SOAP发送到HTTPS。 PycURL来救援。我能够使用5行pyCURL实现。