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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfhttp 400 err from prod server only

Status
Not open for further replies.

stevelionbird

Programmer
Jul 21, 2006
21
US
I'm having a hard time tracing the source of this one ...

I'm using cfhttp to retrieve an xml doc via a cfm page. It works fine on the two development servers, but suddenly it does not work on the production server.

Instead, it throws the following error:
[!]HTTP/1.1 400 Bad Request Content-Type: text/html Connection: close Date: Tue, 20 Mar 2007 14:35:40 GMT Content-Length: 39[/!]

The production server is off site and running Linux (CentOS). Our admin WAS able to get a successful response from the URL via wget from the command line of the production server, so that means the IP is not being blocked for whatever reason and DNS is just fine.

The code is identical on both dev and prod servers and initially the production server was returning results successfully (which made me suspect IP block). Also, the url string is hardcoded into the URL attribute of the cfhttp tag.

Anyone have any ideas as to what might be causing this?

Thanks,
Steve
 
It might be worth mentioning that the webservice being used here is from which is free and pretty handy for calendars. (If I could just figure out why I'm getting the failed responses from the production server now :-\)

If anyone knows of an alternative service that might help too!

Here's the URL I'm calling from cfhttp

-Steve
 
hmm ... If I understand correctly, depending on the web server, malformed or misunderstood header information could cause an error to be returned on request.

So it could be that cfhttp is throwing out bad headers with the request? (or more appropriately, considered bad by the server receiving the request) If that's right it would depend on what the remote server was running, not my production server right?

I'll run some tests to see what the headers look like, but please let me know if I have misunderstood.

Thanks,
Steve

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top