Skip navigation
Currently Being Moderated

CFHTTP "Connection Failure"

Sep 20, 2012 11:49 AM



We're attempting to connect to an xml feed using some CFHTTP code that has been working for some time. We moved to a new CF10 server and have started running into issue, now persistenly, where we receive a "connection failure" response.


I took a look at several related postings and added a number of cfhttpparam's as follows:


<cfhttpparam type="header" name="Accept-Encoding" value="*" />

<cfhttpparam type="Header" name="TE" value="deflate;q=0">

<cfhttpparam type="header" name="accept-encoding" value="no-compression" />

<cfhttpparam type="header" name="accept-encoding" value="deflate;q=0?">

<cfhttpparam type="header" name="te" value="deflate;q=0?">


No combination of the above has worked. i tried a CFdump and got this result:



Charset[empty string]
ErrorDetailI/O Exception: Permission denied: connect
FilecontentConnection Failure
Header[empty string]
MimetypeUnable to determine MIME type of file.
struct [empty]
StatuscodeConnection Failure. Status code unavailable.


Does anyone have some suggestions?

  • Currently Being Moderated
    Sep 20, 2012 1:06 PM   in reply to ggantzer2

    It's an HTTPS URL you're hitting, right? 


    It is likely a certificate issue.


    The certificate chain for that site was probably already loaded into the certificate store for your previous install, then when you installed CF10 you got a new JVM with a new cert store. You' ll probably need to import the cert chain again.


    Instructions: tores-coldfusion.html


    You'll need to figure out where your cacerts file is, and your keytool executable. But after you do that, the instructions should be the same.



    Mark as:
  • Currently Being Moderated
    Sep 20, 2012 1:34 PM   in reply to ggantzer2

    If it is not SSL then my only thoughts are firewall or DNS issues.  Did you hit it from a browser on the same machine as the CF server that is having trouble?



    Mark as:
  • Currently Being Moderated
    Sep 20, 2012 2:42 PM   in reply to ggantzer2

    Can you ping the site in question?  Even if the site does not respond to ping, the question I am wondering if can you resolve the IP of the site on a ping?



    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points