views:

272

answers:

2

I'm trying to do a very simple CFHTTP GET call to a local website running on IIS7, however it throws a 408 Connection Failure.

I've done all the obvious things:

  1. The site is listed in the hosts file locally
  2. I've added the CFHTTPPARAM tags for IIS compression issues (deflate;q=0)
  3. Surfing to the URL in the browser works fine
  4. Doing a CFHTTP to google.com works fine, no local sites work at all.

When searching on Google there are others that have had this, but no solutions.

Anyone successfully got through this issue?

A: 

If you are using a private, or not well known certificate provider you may need to add the public key of the certificate provider to the JRUN keystore.

Here's more info on how to do that: http://cfmasterblog.com/2008/11/09/adding-a-certificate-to-the-coldfusion-keystore/

Terry Ryan
Terry, thanks, but this is not HTTPS. It seems to be an IIS issue. I was previously running Apache with the same code and it worked fine. Why would IIS not be able to resolve CFHTTP to something locally? Perhaps ignoring the HOSTS file? Browsing works fine.
Dave Quested
Looks like IIS receives the request ok:#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken2010-02-08 00:53:36 127.0.0.1 GET /websuite/install/suite/mssql2000.cfm - 80 - 127.0.0.1 ColdFusion 200 0 0 10541
Dave Quested
CFHTTP returns:Charset [empty string]ErrorDetail [empty string]Filecontent Connection TimeoutHeader [empty string]Mimetype Unable to determine MIME type of file.Responseheader struct [empty]Statuscode 408 Request Time-outText YES
Dave Quested
Longshot - Is it a CFM page under developer edition? TWO IP limit?
kevink
Yes it is Developer Edition. But I'm guessing it'll be the same IP requesting. The CFHTTP times out, after what ever you specify in timeout="5", it seems that IIS receives the request, but holds it and doesn't respond to CF. Almost like waiting for authentication? But don't see what that should be.
Dave Quested
Both running on Local System account
Dave Quested
Running the exact same code on production works fine (CF9/IIS7/Win2k3), locally it bombs (CF9/IIS7/Vista)
Dave Quested
A: 

You may just need to restart CF if you changed your HOSTS file after CF was started. It caching DNS entries pretty greedily.

Daniel Short
Hey Daniel, tried all that, including complete reboot. Still nothing. I reckon it's a CF + IIS Vista permissions prob. I'm guessing CFHTTP needs permission to IIS? No idea what extra it needs. They are on the same account, and also Annoymous Authentication is enabled.
Dave Quested
Also remember that the request appears in the IIS logs. It just never gets back to CF.
Dave Quested