determining 404
Mark Brownell
gizmotron at earthlink.net
Mon Apr 26 14:18:28 EDT 2004
On Monday, April 26, 2004, at 10:30 AM, Frank Leahy wrote:
> You look at the first response header, it should look like
>
> HTTP/1.1 200 OK
> and if there's a 404 it will be
> HTTP/1.1 404 File Not Found
> You look for the status code, not the status string.
> You can see this using the form at
> http://www.delorie.com/web/headers.html
>
> -- Frank
That's a nice bit of coding:
> #!/bin/perl
> # -*- perl -*-
> #
> # Copyright (c) 1997, 2000 DJ Delorie, All Rights Reserved. NO
> WARRANTEE.
> # [snip]...
This works nicely
Mark
More information about the use-livecode
mailing list