News for hackers. Stuff that matters.
Re:Time to Upgrade Your Python: TLS v1.2 Will Soon Be Mandatory by maxerickson on Wednesday February 01, 2017 @12:51PM (#13543031)
Does libcurl provide the abstractions to make that transition simpler than directly adding support for the platform libraries to Python's TLS implementation?
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