@
winterbells 没用
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/
ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see
https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Traceback (most recent call last):
File "
v2ex.py", line 14, in <module>
resp = session.get('
https://www.v2ex.com/signin')
File "/usr/local/lib/python2.7/dist-packages/requests/
sessions.py", line 477, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/
sessions.py", line 465, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/
sessions.py", line 573, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/
adapters.py", line 431, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: hostname '
www.v2ex.com' doesn't match '
manage.c3edge.com'