You can't 'ping' a URL. You can ping an IP address or properly qualified
domain name and this simply tells you if the machine/Internet appliance has
a network interface up and listening at that address.
Verifying that a URL is live (e.g. not returning a 404) is a bit more
tricky.
You could use CFHTTP and parse CFHTTP.FileContent for 404 (or other status
codes) to verify that the link is live, however, I would caution you in
doing so if the site you are building will receive heavy traffic (500K hits
a day or more depending on the average latency between your server and the
URLs to be checked).
Also, you might want to look into CFX_HTTP (someone please correct me if I
am wrong), as it is more robust than the built-in Allaire tag.
HTH!
__________________________________
Chris Chambers
AIM: CTC HOME
ICQ: 40311211
VOX: 757-896-6393
FAX: 757-896-0774
Our tests indicate that our software is functioning exactly as coded
__________________________________
-----Original Message-----
From: John Allred [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 30, 2000 4:34 PM
To: CF-Talk
Subject: PING to check URL
I can't find any documentation on using the PING command to check for a
valid URL. The alternative is to force my users to do it, when all I
want is to check its validity before allowing them to enter it on my
site.
Any thoughts?
TIA,
--
John Allred / Jackson, Mississippi
Mississippi Counties
http://www.mscounties.com/
----------------------------------------------------------------------------
--
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.