HTTP Error code Info

Alok Kumar alokkat at gmail.com
Fri May 2 18:24:06 EDT 2008


Hi
I could get the HTTP error code using
try:
..
except:
..
else:

block.  Is there any better way to get the HTTP Error code using urllib2
lib. Something like know the  exact  response number (200, 404 etc) without
the above block.

Regards
Alok Kumar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080502/cae42594/attachment.html>


More information about the Python-list mailing list