Re:Time to Upgrade Your Python: TLS v1.2 Will Soon Be Mandatory
by to3m on Wednesday February 01, 2017 @01:59PM
(#13543757)
I can't say for certain regarding this case specifically, but CURLOPT_CONNECT_ONLY (as I recall) does the TLS and proxy shenanigans, and then waits for you to say "HTTP 1.1" and so on. You can send and receive data using a BSD_socket-a-like API.
https://curl.haxx.se/libcurl/c/CURLOPT_CONNECT_ONLY.html