Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Here is the sample code snippet -

Python
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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900