Jay Deiman <ad...@splitstreams.com> added the comment:

Senthil,

The HTTPRedirectHandler is already breaking RFC2616 by it's own admission in 
the code comments (from the source):

# Strictly (according to RFC 2616), 301 or 302 in response
# to a POST MUST NOT cause a redirection without confirmation
# from the user (of urllib2, in this case).  In practice,
# essentially all clients do redirect in this case, so we
# do the same.
# be conciliant with URIs containing a space

I can definitely understand the issue with changing the default behavior to 
redirect the POST data.  However, an added option which leaves the current 
behavior as the default shouldn't hurt.  I'm submitting a new patch file 
(urllib2.py.redirect_option.patch), which will do exactly that.

----------
Added file: http://bugs.python.org/file24711/urllib2.py.redirect_option.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14144>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to