[issue6557] urllib.urlopen creates bad requests when location header of 301 redirects contain spaces

2009-08-15 Thread Senthil

Senthil orsent...@gmail.com added the comment:

Fixed and Committed revision 74462

--
resolution: accepted - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6557
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6557] urllib.urlopen creates bad requests when location header of 301 redirects contain spaces

2009-08-08 Thread Senthil

Senthil orsent...@gmail.com added the comment:

This bug is already fixed in trunk (Python2.7) and py3k branch -
Issue918368.

I see that the fix was not backported, I shall do that (once the svn is up).

--
resolution:  - accepted
versions: +Python 2.6 -Python 2.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6557
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6557] urllib.urlopen creates bad requests when location header of 301 redirects contain spaces

2009-08-03 Thread Francesco Del Degan

Francesco Del Degan f.delde...@ngi.it added the comment:

urllib2 does escape spaces (and other characters too):

In [20]: 
u=urllib2.urlopen(http://sourceforge.net/project/showfiles.php?
group_id=16847package_id=13374)

In [21]: u.url
Out[21]: 'http://sourceforge.net/projects/xmlrpc-c/files/Xmlrpc-
c%20Super%20Stable/'

In [22]: u.read()[0:100]
Out[22]: '\n\n!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 
Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xh'

--
nosy: +pr0gg3d

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6557
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6557] urllib.urlopen creates bad requests when location header of 301 redirects contain spaces

2009-07-25 Thread Senthil

Changes by Senthil orsent...@gmail.com:


--
assignee:  - orsenthil
nosy: +orsenthil

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6557
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6557] urllib.urlopen creates bad requests when location header of 301 redirects contain spaces

2009-07-23 Thread Till Maas

New submission from Till Maas opensou...@till.name:

If urllib.urlopen is pointed to an url that returns a redirection with a
location header that points to a url containing spaces, that are
properly urlencoded, then it creates a bad request with the spaces not
encoded in the url. Here is an example/test case:

In [1]: import urllib

In [2]:
u=urllib.urlopen(http://sourceforge.net/project/showfiles.php?group_id=16847package_id=13374;)

In [3]: u.url
Out[3]: 'http://sourceforge.net/projects/xmlrpc-c/files/Xmlrpc-c Super
Stable/download'

In [4]: u.read()
Out[4]: 'html\r\nheadtitle400 Bad Request/title/head\r\nbody
bgcolor=white\r\ncenterh1400 Bad
Request/h1/center\r\nhrcenternginx/0.7.60/center\r\n/body\r\n/html\r\n'

In [5]:
u=urllib.urlopen(http://sourceforge.net/projects/xmlrpc-c/files/Xmlrpc-c%20Super%20Stable/download;)

In [6]: u.read()[0:100]
Out[6]: '\n\n!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0
Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xh'

In [7]:

--
components: Library (Lib)
messages: 90864
nosy: till
severity: normal
status: open
title: urllib.urlopen creates bad requests when location header of 301 
redirects contain spaces
versions: Python 2.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6557
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com