This content has been marked as final. Show 5 replies
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.
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.
Should I get rid of any formatting such as indentations within the XML?
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?
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!