[issue7097] urlparse.urljoin of simple "http://" and "somedomain.com" produces incorrect result

2012-01-29 Thread Senthil Kumaran
Senthil Kumaran added the comment: >>> urljoin("http://";, "//somedomain.com") results in "http://somedomain.com"; So, I wonder if this way to specify the relative url properly and not the base-url. The test suite of urlparse tries to follow all the advertised scenarios for RFC3986 and als

[issue7097] urlparse.urljoin of simple "http://" and "somedomain.com" produces incorrect result

2012-01-24 Thread Mark Nottingham
Mark Nottingham added the comment: http: and http:// are both valid base URIs; see RFC3986. More to the point, it's a useful thing to use a scheme as a base URI; many users omit the HTTP:// from their URIs. -- nosy: +mnot ___ Python tracker

[issue7097] urlparse.urljoin of simple "http://" and "somedomain.com" produces incorrect result

2009-10-10 Thread Brett Cannon
Brett Cannon added the comment: urlparse.urljoin() is meant to join together a base URL with other URL parts. The protocol is part of the base URL and thus not supported by urlparse.urljoin(). -- nosy: +brett.cannon resolution: -> invalid status: open -> closed _

[issue7097] urlparse.urljoin of simple "http://" and "somedomain.com" produces incorrect result

2009-10-10 Thread steve steiner
New submission from steve steiner : Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from urlparse import urljoin >>> urljoin("http://";, "somedomain.com") 'http:///somedomain