CFHTTP and IIS 7 Connection Failture (NOT SSL)

2019-07-18 18:32发布

问题:

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?

回答1:

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/



回答2:

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



回答3:

It's a bad implementation. Use cfx_http.