[issue1520831] urrlib2 max_redirections=0 disables redirects

Senthil Kumaran report at bugs.python.org
Mon Nov 15 12:31:13 CET 2010


Senthil Kumaran <orsenthil at gmail.com> added the comment:

John, I was trying to find out what does rfc say on "Client Ignoring the 30X REDIRECT headers". There is no point made on Client's trying to ignore it, instead it said that it should follow the Redirect and must not endlessly loop.

Setting max_redirect to 0 is similar to ignoring the redirect request , which I found to be a bad idea under any case.

Also, if one has to just see redirect urls coming from http server, it can be done by subclassing the HTTPRedirectHandler and logging the redirects.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1520831>
_______________________________________


More information about the Python-bugs-list mailing list