尝试requests.post(url)时出现以下错误。我使用的是python 2.7.10。我已经尝试过在其中一个线程中提供的Custom Http Adapter解决方案,但没有运气..
File "/Library/Python/2.7/site-packages/requests/sessions.py", line 531, in get
return self.request('GET', url, **kwargs)
File "/Library/Python/2.7/site-packages/requests/sessions.py", line 518, in request
resp = self.send(prep, **send_kwargs)
File "/Library/Python/2.7/site-packages/requests/sessions.py", line 661, in send
history = [resp for resp in gen] if allow_redirects else []
File "/Library/Python/2.7/site-packages/requests/sessions.py", line 214, in resolve_redirects
**adapter_kwargs
File "/Library/Python/2.7/site-packages/requests/sessions.py", line 639, in send
r = adapter.send(request, **kwargs)
File "/Library/Python/2.7/site-packages/requests/adapters.py", line 512, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: EOF occurred in violation of protocol (_ssl.c:590)