Getting and trapping HTTP response using Mechanize in Python

Posted by user319723 on Stack Overflow See other posts from Stack Overflow or by user319723
Published on 2010-04-20T06:27:12Z Indexed on 2010/04/20 7:43 UTC
Read the original article Hit count: 203

Filed under:
|

I am trying to get the response codes from Mechanize in python. While I am able to get a 200 status code anything else isn't returned (404 throws and exception and 30x is ignored). Is there a way to get the original status code?

Thanks

© Stack Overflow or respective owner

Related posts about python

Related posts about mechanize