Re: HTTP Error code Info

2008-05-04 Thread David
> 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. Python libraries usually throw exceptions to indicate error conditions. If this is a problem in your app then can write a wra

HTTP Error code Info

2008-05-02 Thread Alok Kumar
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 -- http://mail.python.org/mailman/listinfo/pyt