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 kxroberto
Recipients
Date 2005-02-07.09:12:39
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
urllib.urlopen / open_http should put the
http-error-code somewhere in .info() 

the "fancy" error handling may be ok. But the errcode &
errmsg should not get lost and always be accessible ex
post.
In current style bare urllib.urlopen is hard to use.
(web pages are often down). I always need to fumble a
extra urllib.URLopener even for the simplest task.

E.g.:

f=urllib.urlopen('http://www.python.org/')
httpcode=f.info().get_errcode()

History
Date User Action Args
2008-01-20 09:59:36adminlinkissue1117751 messages
2008-01-20 09:59:36admincreate