[issue14338] Document how to forward POST data on redirects

2012-03-19 Thread Jay Deiman
Jay Deiman added the comment: I actually just worked around this issue in my library to do specifically what I needed it to do, which was an automatic redirect POST with data. As far as general recipes are concerned, anyone could just follow what I did in my library at: https://github.com

[issue14144] urllib2 HTTPRedirectHandler not forwarding POST data in redirect

2012-03-04 Thread Jay Deiman
Jay Deiman added the comment: I have no problem making doc and test changes. I'll probably need a pointer as to where these changes need to be made and submitted to, but like you said, I'll wait until the patch is accepted before

[issue14144] urllib2 HTTPRedirectHandler not forwarding POST data in redirect

2012-03-02 Thread Jay Deiman
Jay Deiman 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

[issue14144] urllib2 HTTPRedirectHandler not handling POST data in redirect

2012-02-27 Thread Jay Deiman
Jay Deiman added the comment: Senthil, That is a good point about the potential for security issues. What if it was an explicit option in HTTPRedirectHandler since there is a possibility of value in being able to do it. I know my case is probably unusual, but I imagine that others might

[issue14144] urllib2 HTTPRedirectHandler not handling POST data in redirect

2012-02-27 Thread Jay Deiman
New submission from Jay Deiman : I've noticed that urllib2's HTTPRedirectHandler does not redirect a POST request with the POST data. If you send a POST request to a server with data, the data is dropped when the new Request is made to the new url. As stated in a comment in t