Check URL --> Simply? (fwd)

Markus Schaber markus at schabi.de
Thu Aug 16 10:16:33 CEST 2001


Hi,

David Eppstein <eppstein at ics.uci.edu> schrub:

>> > Ever more opportunity at shameless self-promotion.  This zillion
>> > special cases of 404-ish pages is something I use as an example in
>> > my forthcoming book _Text Processing in Python_ (a few more months
>> > until
>> > done).  Here's the code I present as an attempt at recognizing what
>> > only humans can:
> 
> Humans can't usually see the http response line with the actual 404
> number in it in place of the 200 indicating an ok page, but machines
> can -- why don't you use that?

Of course, one has to look for 30X (redirects) and other 40X as well :-)

-- 
1) Customers cause problems.
2) Marketing is trying to create more customers.
Therefore:
3) Marketing is evil.  (Grand Edwards in comp.lang.python)



More information about the Python-list mailing list