[issue13651] Improve redirection in urllib

2012-01-26 Thread tom kel
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

[issue13651] Improve redirection in urllib

2011-12-22 Thread tom kel
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

[issue13651] Improve redirection in urllib

2011-12-22 Thread tom kel
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

[issue13650] urllib HTTPRedirectHandler does not implement documented behavior

2011-12-22 Thread tom kel
Changes by tom kel : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue13650> ___ ___ Python-bugs-list mailing list Unsubscri

[issue13650] urllib HTTPRedirectHandler does not implement documented behavior

2011-12-22 Thread tom kel
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")