Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFHTTP url parameter 1

Status
Not open for further replies.

nsampson1

IS-IT--Management
Sep 8, 2000
26
GB
Hi

I'm using cfhttp with the post method to pass some variables to a third party server and collect the results to use in my scripts.
If I use:

'<CFHTTP url=&quot;
as the url I get a 404 page not found error. However, if I specify the IP address of the server in the url as:

'<CFHTTP url=&quot;
as the url, it works.
I don't think there's a problem with dns because I set up the dns records for the 3rd party domain name that I'm testing and everything else on port 80 works fine. I've tried specifying port 80 in the CFHTTP parameters and that doesn't help.

The domain name uses host headers to share an ip address in iis5. Maybe CFHTTP can't handle host headers?

Any ideas?

thanks in advance
 
Hey nsampson,

I would suspect that the host headers are the problem. You could try changing the website over to an IP based one and see if the problem goes away. If it does, that would tend to indicate the <cfhttp> doesn't support the host headers. One other thing to check is the dns setup on the CF server. I would try pinging the website from the CF server and make sure it correctly resolves the IP.

Good luck,
GJ
 
Hi GunJack

Thanks for the advice. Your response prompted me to check local dns on the third party webserver. It seems that someone had set up an entry in the hosts file for the domain name in the past and it was pointing to the wrong ip address.

So coldfusion wasn't to blame after all and I'm sure it can handle host headers.

Thanks again for the help

 
Hey nsampson,

Glad I could help. Those host & lmhost files usually come back to haunt you on down the road ;)

Take care,
GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top