Hi Jeff,

If this tag is going to be made available generally may I join the
queue already forming.

Kind regards

Gordon


At 11:03 08/01/01 -0500 Jeff Sarsoun said....
>Jennifer,
>
>I'm finishing up a CFX tag that will do what you need.  Right now what you
>can do is write a script that will parse through your templates extracting
>out http, ftp, or mailto: tags.  You can dump these into a table then as a
>scheduled task you could cfx_http to the address to get the response code
>from the server, then not show the link if it returns anything other than
>200 and send you an email to let you know.
>
>Jeff Sarsoun
>
>-----Original Message-----
>From: Jennifer [mailto:[EMAIL PROTECTED]]
>Sent: Friday, January 05, 2001 3:09 PM
>To: CF-Talk
>Subject: remote server response
>
>
>I'm looking for ideas because I'm not sure how to go about this. I'm
>setting up some pages that are going to have links to external sites. I
>know how bad it looks to have broken links so I'd like to check the links
>on a schedule and remove any links that are broken. I'll still get some
>broken inks but it's better than using up my server resources checking
>links every time a page loads. At any rate, I'm not sure quite how to check
>the links in the way I'd like to. I'm considered trying
><CFHTTP method="get" ... throwonerror="yes">
>but I'm not sure that it will do what I want it to do. In some cases I want
>to make sure that the server is responding (because I don't have a specific
>file to point to) and in some cases I want to make sure there isn't a 404
>error (because I do have a specific file to point to). This would probably
>work for a 404 error but frankly, I didn't understand the section of the
>CFML Language Reference that talked about whether a filename is required
>for CFHTTP. To be honest, I don't even want to get the file-- I just want
>to make sure it is available. I don't have access to these servers so I
>can't put a dummy file on the server to get to make sure the server is
>responding.
>
>Is there a better way to do this that I'm missing? Ideas?
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to