[issue4493] urllib2 doesn't always supply / where URI path component is empty

2010-12-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: Wes, I forgot to address your last comment. HTTPClient follows HTTP Spec for requests and responses. When it is used, the request is on the PATH and the code there checks if the path does not exist does a request on '/'. It is not appropriate to pass Invali

[issue4493] urllib2 doesn't always supply / where URI path component is empty

2010-11-22 Thread Wes Chow
Wes Chow added the comment: This same bug also exists in HTTPClient, and my patch addresses that. Addressing it in HTTPClient has a side effect of taking care of it for urllib2 as well (and all future libraries that use HTTPClient). Even if the urllib2 patch is preferable, shouldn't we fix th

[issue4493] urllib2 doesn't always supply / where URI path component is empty

2010-11-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed it in r86676 (py3k), r86677 ( release31-maint) and r86678(release27-maint). Wes: I fixed it at the much higher level in the urlparse itself, so that the fixed url is sent to the httplib. In issue2464, John had pointed out that according to STD 66, pa

[issue4493] urllib2 doesn't always supply / where URI path component is empty

2010-11-20 Thread Wes Chow
Wes Chow added the comment: Attached is a patch against 3.2 that replaces empty paths with '/' in HTTPConnection. I do not totally understand the ; syntax in URIs, and so this implementation may break that, as it splits urls and unsplits them if needed. The Python docs seem to indicate there

[issue4493] urllib2 doesn't always supply / where URI path component is empty

2010-08-04 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue4493] urllib2 doesn't always supply / where URI path component is empty

2010-08-01 Thread David Stanek
Changes by David Stanek : -- nosy: +dstanek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue4493] urllib2 doesn't always supply / where URI path component is empty

2010-07-10 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue4493] urllib2 doesn't always supply / where URI path component is empty

2010-07-10 Thread Mark Lawrence
Changes by Mark Lawrence : -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mai

[issue4493] urllib2 doesn't always supply / where URI path component is empty

2009-04-22 Thread Daniel Diniz
Changes by Daniel Diniz : -- keywords: +easy priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4493] urllib2 doesn't always supply / where URI path component is empty

2009-02-12 Thread Daniel Diniz
Changes by Daniel Diniz : -- dependencies: +urllib2 can't handle http://www.wikispaces.com nosy: +orsenthil stage: -> test needed type: -> behavior versions: +Python 2.6 ___ Python tracker

[issue4493] urllib2 doesn't always supply / where URI path component is empty

2008-12-02 Thread John J Lee
New submission from John J Lee <[EMAIL PROTECTED]>: As required by RFC 2616 section 3.2.2, for all HTTP requests sent by urllib2, the path component of the URI should be normalized to "/" before the Request-URI derived from it gets passed to httplib (or something functionally equivalent to that).