classification
Title: urllib.request.HTTPRedirectHandler raises HTTPError when Location header is relative
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.2
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: orsenthil Nosy List: jspenguin, orsenthil, pitrou
Priority: normal Keywords:

Created on 2012-05-10 01:28 by jspenguin, last changed 2012-05-10 09:24 by pitrou.

Files
File name Uploaded Description Edit
rel_redirect.py jspenguin, 2012-05-10 01:28 Test script
Messages (2)
msg160319 - (view) Author: jspenguin (jspenguin) Date: 2012-05-10 01:28
If a server returns a relative URL in the 'Location:' header, HTTPRedirectHandler will fail because it checks the scheme of the URL before it calls urljoin() to convert it to an absolute URL.
msg160330 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2012-05-10 09:24
See issue12275. Seems like a common request.
History
Date User Action Args
2012-05-10 09:24:20pitrousetnosy: + pitrou
messages: + msg160330
2012-05-10 03:01:39orsenthilsetassignee: orsenthil

nosy: + orsenthil
2012-05-10 01:28:07jspenguincreate