determining 404

Richard Gaskin ambassador at fourthworld.com
Mon Apr 26 15:29:46 EDT 2004


Frank Leahy wrote:

>> When obtaining a web resource, if it's 404 the server will usually
>> return a page noting that for the user.  That's all well and good, but
>> the 404 pages I've seen appear to be designed for human reading, and do
>> not appear to have any consistent elements which would allow a machine
>> to identify that the resource was not found.
>>
>> Is there something in the header that identifies that?
>>
>> How can I know when a requested URL doesn't exist?
>
> 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

Thank you, Frank.

Am I under-caffeinated today -- why can't I find the libURL call to get 
the header info coming back from the server?

-- 
  Richard Gaskin
  Fourth World Media Corporation
  ___________________________________________________________
  Ambassador at FourthWorld.com       http://www.FourthWorld.com


More information about the use-livecode mailing list