Click here to Skip to main content
14,240,836 members
Rate this:
Please Sign up or sign in to vote.
Here is the sample code snippet -

conn = httplib.HTTPConnection("proxy_IP",proxy_port)
conn.set_tunnel(host,80)
conn.request("POST", parameter1, parameter2, parameter3)
response = conn.getresponse()



I am trying to tunnel the web request sent to my host through a proxy server. The problem is, this proxy server requires authentication with user:pass.

How do I implement it in python 2.7?

What I have tried:

Haven't tried anything. I need help.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100