[issue2776] urllib2.urlopen() gets confused with path with // in it

2008-08-16 Thread Facundo Batista
Changes by Facundo Batista <[EMAIL PROTECTED]>: -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue2776] urllib2.urlopen() gets confused with path with // in it

2008-08-16 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: Commited in revs 65710 and 65711. Thank you all!! ___ Python tracker <[EMAIL PROTECTED]> ___

[issue2776] urllib2.urlopen() gets confused with path with // in it

2008-08-12 Thread Senthil
Senthil <[EMAIL PROTECTED]> added the comment: I could reproduce this issue on trunk and p3k branch. The patch attached by Adrianna Pinska "appropriately" fixes this issue. I agree with the logic. Attaching the patch for py3k with the same fix. Thanks, Senthil Added file: http://bugs.python.org

[issue2776] urllib2.urlopen() gets confused with path with // in it

2008-07-03 Thread Facundo Batista
Changes by Facundo Batista <[EMAIL PROTECTED]>: -- assignee: -> facundobatista nosy: +facundobatista, orsenthil ___ Python tracker <[EMAIL PROTECTED]> ___

[issue2776] urllib2.urlopen() gets confused with path with // in it

2008-06-21 Thread Adrianna Pinska
Adrianna Pinska <[EMAIL PROTECTED]> added the comment: I have written a test to go with my patch. Added file: http://bugs.python.org/file10685/doubleslash_test.patch ___ Python tracker <[EMAIL PROTECTED]> ___

[issue2776] urllib2.urlopen() gets confused with path with // in it

2008-05-10 Thread Adrianna Pinska
Adrianna Pinska <[EMAIL PROTECTED]> added the comment: Ordinarily, request.get_selector() returns the portion of the url after the host, and sel_host is None. However, if a proxy is set on the request, the request's host is set to the proxy host, get_selector() returns the original full url, and

[issue2776] urllib2.urlopen() gets confused with path with // in it

2008-05-06 Thread Martin McNickle
Changes by Martin McNickle <[EMAIL PROTECTED]>: -- components: +Library (Lib) -Extension Modules versions: +Python 2.6, Python 3.0 __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2776] urllib2.urlopen() gets confused with path with // in it

2008-05-06 Thread Martin McNickle
Martin McNickle <[EMAIL PROTECTED]> added the comment: The problem lines are in AbstractHTTPHandler.do_request(): scheme, sel = splittype(request.get_selector()) sel_host, sel_path = splithost(sel) if not request.has_header('Host'): request.add_unredirected_header('Host', sel

[issue2776] urllib2.urlopen() gets confused with path with // in it

2008-05-06 Thread Ambarish Malpani
Ambarish Malpani <[EMAIL PROTECTED]> added the comment: Sorry, should have added another line: The reason this is important to fix, is I am getting that URL with a // in a Moved (HTTP 302) message, so I can't just get rid of the // __ Tracker <[EMAIL PROTECTED]> <

[issue2776] urllib2.urlopen() gets confused with path with // in it

2008-05-06 Thread Ambarish Malpani
New submission from Ambarish Malpani <[EMAIL PROTECTED]>: Try the following code: import urllib import urllib2 url = 'http://features.us.reuters.com//autos/news/95ED98EE-A837-11DC-BCB3-4F218271.html' data = urllib.urlopen(url).read() data2 = urllib2.urlopen(url).read() The attempt to get it wi