RE: Quick CFHTTP Question

2001-02-06 Thread Philip Arnold - ASP

> Hello all!  Currently I'm using CFHTTP to call a header
> externally.  However if the page that I'm calling returns a 404
> (or some other error) how can I determine this?  Or is everyone
> going to tell me to use CFX_HTTP?  Granted that this is an
> external clients server, I'm hoping I don't have to tell them to
> install CFX_HTTP.  Thanks!

The problem with this is that some sites return a HTML 404 error, and some
just send the 404 message

You could run CFHTTP with CFTry around it, but you're relying on an awful
lot of variables

CFX_HTTP is a lot more powerful, and will do most of what you want
instinctively, but if it's not your server, then the hosts might not want to
install it...

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Quick CFHTTP Question

2001-02-06 Thread Edward Smith

I believe 4.51+ has more ability to read headers of CFHTTP.. Lets see...

Ah, not sure what version this showed up in, but the help for CFHTTP in
studio says:

CFHTTP.ResponseHeader(http_hd_key) - so this looks like a struct of the
headers
CFHTTP.Header - the raw header text
CFHTTP.StatusCode - the response code by itself.

Good luck!

Gregory Harris wrote:
> 
> Hello all!  Currently I'm using CFHTTP to call a header externally.  However if the 
>page that I'm calling returns a 404 (or some other error) how can I determine this?  
>Or is everyone going to tell me to use CFX_HTTP?  Granted that this is an external 
>clients server, I'm hoping I don't have to tell them to install CFX_HTTP.  Thanks!
> 
> Gregory Harris
> Web Developer
> 
> The Stirling Bridge Group, LLC
> *We Engineer Internet Business Solutions*
> TEL: (949) 707-1534  FAX: (949) 707-1535
> 
>
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Quick CFHTTP Question

2001-02-06 Thread Dick Applebaum

Gregory

Just parse CFHTTP.FileContent for 404...

HTH

Dick


At 11:45 AM -0800 2/6/01, Gregory Harris wrote:
>Hello all!  Currently I'm using CFHTTP to call a header externally. 
>However if the page that I'm calling returns a 404 (or some other 
>error) how can I determine this?  Or is everyone going to tell me to 
>use CFX_HTTP?  Granted that this is an external clients server, I'm 
>hoping I don't have to tell them to install CFX_HTTP.  Thanks!   
>
>Gregory Harris
>Web Developer

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Quick CFHTTP Question

2001-02-06 Thread Aaron Johnson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Greg,

I'm not to sure what you're trying to do but I'll take a wack at it.
It sounds like you're getting an error when you do a CFHTTP and the
server in question returns a 404.  Can you just check the contents of
the cfhttp.filecontent variable to see if it contains 404 or some
message like that?  If you need access to the raw headers, I'd
recommend,  or .

HTH

Aaron Johnson, MCSE, MCP+I
Allaire Certified ColdFusion Developer
MINDSEYE, Inc.
617.350.0339
617.350.8884
66172567
[EMAIL PROTECTED]
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists