Seems CFHTTP is a much better choice than CFLocation.

Duane


-----Original Message-----
From: Duane Boudreau [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 10:08 AM
To: CF-Talk
Subject: Trapping Errors from CFLocation


Is it possible to trap the "HTTP/1.0 404 Object Not Found" error when
cflocation goes to a page that does not exist? I tried this (CF4.5) with no
luck:

<cftry>
        <cflocation url="http://someurl">
        <cfcatch type="Any">
                Sorry the requested site could not be loaded
        </cfcatch>
</cftry>

Thx,
Duane Boudreau,
Applications Manager
AllVertical
Exeter, NH
603.658.4277
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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