fetch a html page via proxy?
Skip Montanaro
skip at mojam.com
Mon Jan 10 09:46:07 EST 2000
Ricardo> I need to fetch a page from the web but the linux machine
Ricardo> doesn't have direct connection to the net. It needs to go thru
Ricardo> a proxy to connect to the web. How can I do this with Python?
The urllib module handles proxies. If you set the http_proxy environment
variable appropriately on Unix or Windows or do the Internet Config thing on
Mac, it will use the proxy instead of attempting to make a direct connection
to the server.
Skip Montanaro | http://www.mojam.com/
skip at mojam.com | http://www.musi-cal.com/
847-971-7098 | Python: Programming the way Guido indented...
More information about the Python-list
mailing list