Currently using something looking like that: http://stackoverflow.com/questions/29995133/python-requests-use-navigate-site-by-servers-ip
Of course that's not enough for HTTPS, it's even weird it worked until now.
Any idea on how to make it send the correct TLS SNI?
@CobaltVelvet Ahah! Python does have a libcurl interface.
curl.setopt(pycurl.RESOLVE, "hostname:443:ipaddress")
That should get it to do the right SNI handshake, since its editing the DNS resolver path (https://curl.haxx.se/libcurl/c/CURLOPT_RESOLVE.html)
@sysadmin1138 but it's more deps, I'm pretty sure it's doable with httplib, just painful
@cdetar @sysadmin1138 no that's too hacky for it, I'd prefer to keep it contained inside the process.