I have a database with thousands of urls and needed a way to check the
status of them. Previously I had a scheduled event that ran my cfm template
that did basically what yours does but using CFX_HTTP. The problem I ran
into was that on some URL's the template would stop processing further but
not throw an error.
I worked around this by writing a CFX tag that would time out the http
thread if it didn't get a response within a set time.
I think your template is taking a very long time for the same reason.
Jeff Sarsoun
-----Original Message-----
From: Marc Garrett [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 22, 2001 12:24 PM
To: CF-Talk
Subject: checking whether sites are available
I have a database of a few hundred sites. I'd like to use CF to
automatically check to see whether the sites are up so I don't have to do it
by hand. The solution I came up with is to use cfhttp.statuscode to check
whether the site is up. I loop through the list and update the database
accordingly. My code works, but it takes forever. Two questions:
1) Is there a way I can break the site list into chunks, and have the
template check the statuscode of 20 sites at a time instead of all of them?
I recall someone suggesting this solution for sending thousands of emails
with CFMAIL, but I couldn't find that post in the archives.
2) Is there a better way of doing this instead of cfhttp.statuscode?
Thanks for any assistance.
Marc Garrett
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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