RE: 404 checking

2000-04-02 Thread Dave Watts

> >In the HTTP protocol a 404 Error is returned in the header, your return
> >might look like this...
...
> Yes, but is that information available through the CFHTTP
> variables?  I didn't think it was... but I haven't done
> much with CFHTTP besides passing around WDDX stuff, so
> I'm sure I could be mistaken.

If you're using CF 4.5, you can reference CFHTTP.Header, which is the entire
HTTP response header. You can also reference CFHTTP.ResponseHeader, which is
a structure which contains each individual header; if there are any
duplicate lines, the structure member for that header will contain an array
which contains the values for each line.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: 404 checking

2000-03-28 Thread Pete Freitag

Yes, you would have to use a CFX tag, like CFX_HTTP
(http://www.fsc.follett.com/cf/cfx_http/) it returns Headers

__
Pete Freitag
CFDEV.COM
Cold Fusion Developer Resources
http://www.cfdev.com/

-Original Message-
From: Seth Petry-Johnson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 29, 2000 2:35 AM
To: [EMAIL PROTECTED]
Subject: Re: 404 checking


>In the HTTP protocol a 404 Error is returned in the header, your return
>might look like this...


Yes, but is that information available through the CFHTTP variables?  I
didn't think it was... but I haven't done much with CFHTTP besides passing
around WDDX stuff, so I'm sure I could be mistaken.

Regards,
Seth Petry-Johnson
Argo Enterprise and Associates


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: 404 checking

2000-03-28 Thread Seth Petry-Johnson

>In the HTTP protocol a 404 Error is returned in the header, your return
>might look like this...


Yes, but is that information available through the CFHTTP variables?  I
didn't think it was... but I haven't done much with CFHTTP besides passing
around WDDX stuff, so I'm sure I could be mistaken.

Regards,
Seth Petry-Johnson
Argo Enterprise and Associates

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: 404 checking

2000-03-28 Thread Pete Freitag

In the HTTP protocol a 404 Error is returned in the header, your return
might look like this...

HTTP/1.1 404 Not Found
Date: Wed, 29 Mar 2000 07:46:15 GMT
Server: Apache/1.3.9 (Unix)  (Red Hat/Linux)
Connection: close
Content-Type: text/html



404 Not Found

Not Found
The requested URL /ha.ge was not found on this server.

Connection closed by foreign host.


_
Pete Freitag
CFDEV.COM
Cold Fusion Developer Resources
http://www.cfdev.com/

-Original Message-
From: Seth Petry-Johnson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 29, 2000 1:05 AM
To: [EMAIL PROTECTED]
Subject: Re: 404 checking


>I'm developing a portal for economists which provides a large database of
>sorted links. I'd like to implement some kind of scheduled broken link
>checker. Does anyone know of a custom tag that does this (I've searched
>Allaire's tag gallery)? If not, do you have any advice on how I should
write
>it?


This subject came up before, but I don't know if a definitive answer was
ever given.  Obviously, you will need to use CFHTTP to connect to all the
links, but that's where things get hairy.  Since many sites customize their
404 error pages, determining whether the resulting CFHTTP content represents
a 404 error or not is very difficult.

You could probably loop through all of the links and flag those that may be
404 errors and then have an employee manually check them.  This would give
you the greatest degree of certainty but would also cost manpower.

Regards,
Seth Petry-Johnson
Argo Enterprise and Associates




--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: 404 checking

2000-03-28 Thread Seth Petry-Johnson

>I'm developing a portal for economists which provides a large database of
>sorted links. I'd like to implement some kind of scheduled broken link
>checker. Does anyone know of a custom tag that does this (I've searched
>Allaire's tag gallery)? If not, do you have any advice on how I should
write
>it?


This subject came up before, but I don't know if a definitive answer was
ever given.  Obviously, you will need to use CFHTTP to connect to all the
links, but that's where things get hairy.  Since many sites customize their
404 error pages, determining whether the resulting CFHTTP content represents
a 404 error or not is very difficult.

You could probably loop through all of the links and flag those that may be
404 errors and then have an employee manually check them.  This would give
you the greatest degree of certainty but would also cost manpower.

Regards,
Seth Petry-Johnson
Argo Enterprise and Associates



--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.