there is nothing you can do about that as it is a feature of some DNS
servers that they will redirect to a url if the domain does not exist or is
disabled.
You will need to do 2 tests.
1. test if the url returns a response
2. if yes then  test if the url returns the expected response

Russ

On Thu, Jan 6, 2011 at 2:28 AM, Rob Barthle <[email protected]> wrote:

>
> I'm running into a problem with CFHTTP. I like to use it on some projects
> to verify a URL before allowing it to be used. The problem I have is that on
> my local development environment, my DNS servers (Buckeye Express) don't
> return failure codes if an invalid URL is tested. My DNS instead forwards
> the request to a BEX web page that has a few ads and links and a search.
> Think of it like what openDNS does.
>
> Is there anything I can do to start getting validations working? If I have
> CFHTTP checking a site I want to know if I get anything other than a 200 OK
> return. I could just post the code to production, which is not on BEX
> servers and works like I want it to, but I really detest the idea of coding
> and unit testing in a production environment.
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340497
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to