Copy link to clipboard
Copied
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] | ||
ErrorDetail | I/O Exception: Permission denied: connect | ||
Filecontent | Connection Failure | ||
Header | [empty string] | ||
Mimetype | Unable to determine MIME type of file. | ||
Responseheader |
| ||
Statuscode | Connection Failure. Status code unavailable. | ||
Text | YES |
Does anyone have some suggestions?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
its not, its HTTP. I also forgot to mention that hitting the url in a browser produces xml as it should.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
i am unable to use a browser to hit external sites for security reasons, so hard to check on that. We do hit other services without issue. Are there settings in the CFadministrator that i should check?
Copy link to clipboard
Copied
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?
jason
Copy link to clipboard
Copied
the domain resolved on a ping, but i had 100% packet loss. i'm starting to think this is firewall.