urllib2: disable HTTPRedirectHandler

Achim Domma achim.domma at syynx.de
Thu Oct 31 09:46:02 EST 2002


Hi,

I don't want urllib2 to handle 302 and 301 automaticaly. I want to get
return code (302 or 301) and the sended headers. My intension is to build a
proxy between a browser and the server to monitor the headers passed around.
As far as I understand I only have to remove the HTTPRedirectHandler, but
how and where do I have to do that?

greetings
Achim





More information about the Python-list mailing list