cdetar is a user on octodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

Currently using something looking like that: stackoverflow.com/questions/29

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 (curl.haxx.se/libcurl/c/CURLOPT)

@sysadmin1138 but it's more deps, I'm pretty sure it's doable with httplib, just painful

cdetar @cdetar

@CobaltVelvet @sysadmin1138 Is it possible in the setup to modify /etc/hosts on the machine that's making requests? That would pre-empt any local DNS lookups and python-requests would send the correct SNI.

· Web · 0 · 0

@cdetar @sysadmin1138 no that's too hacky for it, I'd prefer to keep it contained inside the process.