using httpdlib with a proxy server

Ilja Heitlager news at heitlager.com
Tue Apr 11 05:17:10 EDT 2000


Lenny Self wrote in message ...
>I am attempting to write a small script that sends a list of URLs though a
>proxy server and then records a bit of information on the respose.  I
though
>I could use the httplib module to help with this, however, I don't see
where
>it can send a request though a proxy server. Does anyone know of a module
>that will allow me to do this?

You can use the httplib. You need to open the connection to the proxy server
and insert
a Host header variable with the requested site as value.

HTH,
Ilja Heitlager





More information about the Python-list mailing list