tom kel added the comment:
I changed the patch and made it a little bit better.
--
versions: +Python 3.1, Python 3.4 -Python 2.7
Added file: http://bugs.python.org/file24334/2012-1-26.diff
___
Python tracker
<http://bugs.python.org/issue13
tom kel added the comment:
I created this patch to further the functionality of redirection using the
"location" header in the HTTPRedirectHandler class under urllib/request.py
Currently, the method http_error_302, which will handle code 302 redirection
will parse the location
New submission from tom kel :
refer to patch for improvements
--
components: Library (Lib)
files: http-redirect-3.2.diff
keywords: patch
messages: 150103
nosy: tom.kel
priority: normal
severity: normal
status: open
title: Improve redirection in urllib
type: enhancement
versions: Python
Changes by tom kel :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue13650>
___
___
Python-bugs-list mailing list
Unsubscri
New submission from tom kel :
Python 3.2.2,
Here is a blokck of code from the HTTPRedirectHandler:
m = req.get_method()
if (not (code in (301, 302, 303, 307) and m in ("GET", "HEAD")
or code in (301, 302, 303) and m == "POST")