In python, on a Ubuntu server, I am trying to get the requests
library to make https requests, like so:
import requests
requests.post("https://example.com")
At first, I got the following:
/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.
After following the advice in this question: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately, I have now upgraded my warning to the following error:
AttributeError: '_socketobject' object has no attribute 'set_tlsext_host_name'
How do I fix this?