Thanks, Dave.

Maybe I'm narrowing the choices by my question. I'm not hung up on PING.
I would merely like to be able to check for a URL behind the scenes in
my script, without forcing my visitor to do it for me (enter it, test
it, and either click the back button or close the new window, depending
on how I set it up). If the address, entered in a browser, would return
a 404 I'd like to be able to send back a prompt, so the user can take
appropriate action.

Thanks,
John

Dave Watts wrote:
> 
> Ping doesn't have anything to do with URLs. You use Ping to see if you can
> connect to a specific IP address or DNS name. Ping uses ICMP as its
> protocol, and doesn't tell you whether there's a web server running, or
> anything else except that there is something at that address.
> 
> If you want to check a URL, you can use CFHTTP to test it, and in CF 4.5.x,
> you can access the CFHTTP.StatusCode variable which will tell you whether
> you could retrieve the requested resource. One caveat - if you do this with
> a URL which points to a CF script, such as
> "http://www.myserver.com/myfile.cfm", the CFHTTP.StatusCode will be 200,
> which means that the server could respond successfully, even if there is no
> file "myfile.cfm". CF returns a "fake" 404 HTML page, instead of returning a
> 404 status code.
>
------------------------------------------------------------------------------
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.

Reply via email to