Skip to content Skip to sidebar Skip to footer

Connect To A Server Through Proxy With Socket Library (python3)

I'd like to use socket library to connect to a server (not necessary a webserver) through an http proxy. Is it possible? For example (with requests library): import requests r = r

Solution 1:

It is possible for most types of connections (HTTP and FTP etc., possibly HTTPS, although this is a bit more tricky) using the urllib module with a ProxyHandler object.


Post a Comment for "Connect To A Server Through Proxy With Socket Library (python3)"