How to write http program through firewall???

Daniel Dittmar daniel.dittmar at sap.com
Fri Jan 4 07:55:27 EST 2002


>>
My computer's IP is 10.1.1.67,and my company's firewall is 10.1.1.105,and
it's port is 3128,
I can't communicate with www.python.org directly,  I only communicate with
www.python.org through this
firewall of 10.1.1.105:3128. How can I correct above program and make it
work again under firewall?
<<

set the environment variable http_proxy to '10.1.1.105:3128'.

The following might also work:
conn = httplib.HTTPConnection("10.1.1.105:3128")
conn.request("GET", "http://www.python.org/index.html")
r1 = conn.getresponse()

Daniel






More information about the Python-list mailing list