This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients LDTech, Mi.Zou, christian.heimes, ezio.melotti, orsenthil, terry.reedy, vajrasky
Date 2013-07-19.09:23:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Something else is going on here. A valid server never returns an URL with non-ASCII chars. Your test server does the right thing, too:

$ LC_ALL=C wget
--2013-07-19 11:01:54--
Resolving (
Connecting to (||:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: [following]
Incomplete or invalid multibyte sequence encountered
--2013-07-19 11:01:54--
Reusing existing connection to
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

I have digged through the code. Now I think that I know what's going on here. The header parsing code unquotes and converts the Location header. The code in the 302 handler doesn't compensate and therefore fails.

Here is a patch that corrects the code in the 302 function.
Date User Action Args
2013-07-19 09:23:28christian.heimessetrecipients: + christian.heimes, terry.reedy, orsenthil, ezio.melotti, Mi.Zou, vajrasky, LDTech
2013-07-19 09:23:28christian.heimessetmessageid: <>
2013-07-19 09:23:28christian.heimeslinkissue17214 messages
2013-07-19 09:23:27christian.heimescreate