Skip to main content
Known Participant
September 20, 2012
Question

CFHTTP "Connection Failure"

  • September 20, 2012
  • 1 reply
  • 8187 views

Hello,

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:

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

Does anyone have some suggestions?

This topic has been closed for replies.

1 reply

12Robots
Participating Frequently
September 20, 2012

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: http://helpx.adobe.com/coldfusion/kb/import-certificates-certificate-stores-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.

Jason

ggantzer2Author
Known Participant
September 20, 2012

its not, its HTTP. I also forgot to mention that hitting the url in a browser produces xml as it should.

12Robots
Participating Frequently
September 20, 2012

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?

Jason