FancyURLopener: no HTTP status codes?

Alex Martelli aleax at aleax.it
Sun Jul 7 10:28:35 EDT 2002


Carsten Gaebler wrote:

> Hi there,
> 
> is there any possibility of getting the HTTP status code from a
> urllib.FancyURLopener object?

I don't think class FancyURLopener keeps any memory about what
happened on its most recent open method call, if that's what you
mean.  I guess you could subclass it in order to do so, but that
seems fragile and error-prone.  Maybe using lower-level httplib,
or fancier urllib2, provides better architectural prospects.


Alex




More information about the Python-list mailing list