CFHTTP and IIS 7 Connection Failture (NOT SSL)

喜你入骨 提交于 2019-12-12 18:35:18

问题


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.



来源:https://stackoverflow.com/questions/2218615/cfhttp-and-iis-7-connection-failture-not-ssl

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!