Current Position:Home > This CFHTTP works under CF5 but not CF7

This CFHTTP works under CF5 but not CF7

Update:10-11Source: network consolidation
Advertisement
Hi,
Can some one explains to me why this code works under CF5,
the page is returned in fileContent, but under CF7, the fileContent
only contains "connection failure", although the status is reported
as "200 OK".
Also, i'd appreciate if someone could test it under CF8 and
tell mes if the page is returned.
Thanks.

The Best Answer

Advertisement
Hi everyone, I’m experiencing a similar prob but find
that your suggested solutions don’t seem to work for me.
On my remoteserever (CF7.02). it returns 408 Request Time-out
no matter what I do. It just never connects. When submitted from my
local server (cf8 developer) I get connected everytime. I have a
friend with the same host (on a different server) and he has no
probs cfttp’ing to this url with the same code.
<cfhttp
url="
http://api.clickatell.com/http/sendmsg"
resolveurl="false"
timeout="5"
method="post"
>
<cfhttpparam type="formfield" name="api_id"
value="9999999">
<cfhttpparam type="formfield" name="user"
value="aaaaaaa">
<cfhttpparam type="formfield" name="password"
value="xxxxxx">
<cfhttpparam type="formfield" name="from"
value="61400000000">
<cfhttpparam type="formfield" name="to"
value="27999100000">
</cfhttp>
I’m not sure if it’s a compression issue or not.
I tried
<cfhttp
url="
http://api.clickatell.com/http/sendmsg"
resolveurl="false"
timeout="5"
method="post"
>
<cfhttpparam type="Header" name="Accept-Encoding"
value="deflate;q=0">
<cfhttpparam type="Header" name="TE"
value="deflate;q=0">
<cfhttpparam type="formfield" name="api_id"
value="9999999">
<cfhttpparam type="formfield" name="user"
value="aaaaaaa">
<cfhttpparam type="formfield" name="password"
value="xxxxxx">
<cfhttpparam type="formfield" name="from"
value="61400000000">
<cfhttpparam type="formfield" name="to"
value="27999100000">
</cfhttp>
AND
<cfhttp
url="
http://api.clickatell.com/http/sendmsg"
resolveurl="false"
timeout="5"
method="post"
>
<cfhttpparam type="header" name="Accept-Encoding"
value="*" />
<cfhttpparam type="Header" name="TE"
value="deflate;q=0">
<cfhttpparam type="formfield" name="api_id"
value="9999999">
<cfhttpparam type="formfield" name="user"
value="aaaaaaa">
<cfhttpparam type="formfield" name="password"
value="xxxxxx">
<cfhttpparam type="formfield" name="from"
value="61400000000">
<cfhttpparam type="formfield" name="to"
value="27999100000">
</cfhttp>
As per
http://www.talkingtree.com/blog/index.cfm/2004/7/28/20040729/
and
your suggestions only to note that none of these suggestions
permitted a successful connection from my remote host. They all
connect immediately from my local host.
I also noted Dan’s quote:
“After some more testing, it appears CFMX 7 reports the
user agent string of "CFSCHEDULE" and not "ColdFusion". This means
you should also add the "CFSCHEDULE" string along with the string
"ColdFusion" to your MIME type exceptions list. “
From:
http://blog.pengoworks.com/index.cfm/2006/3/13/CFHTTP-Connection-Failures-issues-with-Gzip
I’m not sure of the syntax to do this or if the GZIP
stuff is even relevant to my server. (Yep, I’m with Godaddy)
Anyone???
  • This CFHTTP works under CF5 but not CF7 Update:10-11

    Hi, Can some one explains to me why this code works under CF5, the page is returned in fileContent, but under CF7, the fileContent only contains "connection failure", although the status is reported as "200 OK". Also, i'd appreciate if

  • Upgrading from CF5 to CF7 Update:11-30

    We're running an eCommerce app on the server, and would rather not down it for hours if possible. Tried running 5 and 7 concurrently on a dev server, and it was nasty. How about upgrading 5 to 6, then 6 to 7? Or must I down the server, uninstall 5, t

  • CASE and CONVERT in Q of Q / CF7 Update:11-30

    Am converting CF5 code to CF7, and from documentation, understand you can do more things in Query-of-Queries in CF7 than you could in CF5. But one QofQ that worked in CF5 won't work in CF7, returns an error. It uses a variable that on occassion cause

  • Problem in Cold Fusion MX Update:11-30

    we have an issue displaying content that is under a database, with a datatype ntext. CF don't give us any error but it just don't display the field that is in a ntext datatype. Is there a way to get Cold Fusion to display the content that is under th

  • PreserveSingleQuotes fails Update:11-30

    Hi, We are finally moving our comparatively large CF5 extranet to CF7, and I am running into an issue where SQL code that worked fine in CF5, and which used preserveSingleQuotes(), is now not being not-escaped properly in CF7 and failing. I've had to

  • Any change in CFHTTP call in CF7? Update:11-30

    I got following code in CF5..worked fine. When i used same code in CF7, not working. Any change in CFHTTP call in CF7?. How to debug CFHTTP? <cfhttp method="post" url=" http://server101/app/userappapi.do" port="80"> <

  • Cfhttp error on CF7 but not CF8 - need help Update:10-11

    I have been battling this for a few days now, and I am starting to go a bit insane.  So, I am hoping someone can offer some assistance. I am trying to make a call to the Live Contacts API.  On CF8, I can get this to work but on CF7 it throws an error

  • UTF issue when moving from cf5 to cfmx7 Update:11-30

    It's been long overdue so am moving from CF5 to cfmx7 on my hosting account. The issue is that my hosting account has disabled cfcontent. I am getting gibberish outputting utf data from my database. It works fine on cf5 but on cfmx7 I read someplace

  • CF7 and JDK 1.4.2 - EV SSL Certificate Issue Update:10-11

    Let me start off by telling the group that we do not use CF for any of our applications.  We are a payments company that hosts a .NET API in IIS that 100's of thousands of customer use.  We have one particular customer using CF7 and JDK 1.4.2 who is

  • Cfhttp and setting the content-type for a request Update:10-11

    Hi, I am trying to set the content-type for a cfhttp request like this (on coldfusion 9): <cfhttp redirect="no" method="get" timeout="120" url="http://10.0.0.1/test2.cfm">     <cfhttpparam type="HEADER