Check the status code

200 is ok, but there is a different one for a redirect

you should be able to tell if its a redirect from that

Steve

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Andrew
Scott
Sent: Friday, April 01, 2005 10:57 AM
To: CFAussie Mailing List
Subject: [cfaussie] cfhttp



Here is a problem that I can't seem to solve.

I have a website that uses advertiser clicks, from banners and I use cfhttp
to check that the website exists then display the website. The problem is
that some seem to redirect to another location, and those seems to break
cfhttp or at least in the method that I am doing it anyway.

Here is the code that fails.

<cfhttp url="#myUrl#" resolveurl="yes" throwonerror="yes"></cfhttp>

I have also tried resolveurl = no and nothing, is there another parameter or
something else that I am missing.

The variable myUrl is http://www.ikea.com.au/ which if you browse via the
browser is redirected to http://www.ikea.com/ms/en_AU/

Is there a way around this!


Regards
Andrew Scott
Technical Consultant

NuSphere Pty Ltd
Level 2/33 Bank Street
South Melbourne, Victoria, 3205

Phone: 03 9686 0485  -  Fax: 03 9699 7976



---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/



---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to