• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfhttp connection failure error

Participant ,
Mar 06, 2007 Mar 06, 2007

Copy link to clipboard

Copied

Any clues why I'm getting a connection failure error with cfhttp? This is frustrating. I'm trying to do a basic CFXML and I can't even connect. I'm seeing postings of problems with it. We're running MX7. I'd welcome any tips or clues.
TOPICS
Advanced techniques

Views

1.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Mar 07, 2007 Mar 07, 2007

Copy link to clipboard

Copied

Coldfusion sometimes has problems with cfhttp and HTTPS. In order to connect to an https server, you may need to include the following <cfhttpparam>'s:

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

If you are not having a problem with HTTPS, try doing a dump of your CFHTTP structure after your <cfhttp> call. You may get some more info about your problems based on the status code. CF sometimes returnes connection failure errors for a number of different reasons.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 07, 2007 Mar 07, 2007

Copy link to clipboard

Copied

Thank you for responding, but it still isn't connecting. It has to be something basic. I switched from CFXML to cfsavecontent and am still getting the same "connection failure" error. I've dumped the XML and it appears to be ok. I'm not even connecting to the other site.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 07, 2007 Mar 07, 2007

Copy link to clipboard

Copied

Should I get rid of any formatting such as indentations within the XML?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Mar 08, 2007 Mar 08, 2007

Copy link to clipboard

Copied

You are sending XML via an HTTP form post? Are you trying to consume a webservice or just send the XML text? What happens if you create a dummy HTML form that posts the same data to your destination URL in a textarea? Do you get a response back in the browser?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 10, 2007 Mar 10, 2007

Copy link to clipboard

Copied

LATEST
I ended up using cfsavecontent with a cfhttp. I was getting connection failure errors. After days of researching this, I found documentation regarding a bug. I was finally able to connect to the test site, but I never could connect to the production site at Authorize.Net. After a full week of requesting help from the development team, they never responded. We're going a different route because it is too unstable. Thank you for all of your help!

http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19139

http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=95f66fd8

http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_18198

http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_18172


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation