Getting web page throught a proxy (squid)

David Fisher python at rose164.wuh.wustl.edu
Tue Mar 21 16:09:03 EST 2000


----- Original Message -----
From: "Jean-Paul ROUMIAN" <roumian at clr34ei.der.edf.fr>
Newsgroups: comp.lang.python
To: <python-list at python.org>
Sent: Tuesday, March 21, 2000 1:46 PM
Subject: Getting web page throught a proxy (squid)


> Hello,
>
> I try to get a web page,from  behind a proxy (squid) which uses the ICP
> protocol.
> Is there a module that can do that (httplib can't as far as I know) ?
>
> (I need also  a ssl-connection, but I've found patches for this)
>
> Any pointers ?

Hi,
Use urllib.  It's in the standard distribution.  It supports proxies.  Set
the environment var HTTP_PROXY to the address of the proxy.
Good luck,
David






More information about the Python-list mailing list