This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author orsenthil
Recipients albert, orsenthil
Date 2010-02-26.21:17:27
SpamBayes Score 2.9145476e-05
Marked as misclassified No
Message-id <1267219049.36.0.754939050502.issue6631@psf.upfronthosting.co.za>
In-reply-to
Content
The bug here seems to me that urllib.urlopen() should not allow a relative file path like the one specified. f='./rel/path/to/file.html
urllib2's behavior seems proper that it is raising an Exception.

According to the RFCs the local files are to be acceessed by:
file://localhost/path/to/file
file:///path/to/file

Both are absolute paths to the file where in the second one localhost is omitted.

Let me see if urllib's urlopen be made a little stricter.
History
Date User Action Args
2010-02-26 21:17:29orsenthilsetrecipients: + orsenthil, albert
2010-02-26 21:17:29orsenthilsetmessageid: <1267219049.36.0.754939050502.issue6631@psf.upfronthosting.co.za>
2010-02-26 21:17:27orsenthillinkissue6631 messages
2010-02-26 21:17:27orsenthilcreate