Sagewire Logo

CFHTTP problem

3 Message(s) by 2 Author(s) originally posted in cfml discussion


From: capik79 Date:   Friday, October 26, 2007
Hi All,

I an issue regarding CFHTTP tag.

My Code :-
<CFHTTP url="#url_file #"
method="GET"
name="sapImport" throwonerror="yes"

columns="project,project_name,vendor,vendor_name,po,sap_doc,vendor_doc,wbs,wbs_n
ame,amount,d_c,period,year,posting_date,clearing_date" >

</CFHTTP>

I have no problem run this code at my server , but when I post it to another
server with same ColdFusion Server Version(6.1) it return an error .
But it only happened when I upload .csv file. No problem with .txt file.

The error :"The value of the attribute query, which is currently "sapImport",
is invalid."

Any one face the same issue? Any setting to check for the other server?


Almost no idea to solve...
Shaffiq


From: johnab Date:   Friday, October 26, 2007
the error is probably occuring later in the code where you attempt to use
saplmport - my suggestiion'd be to check on the server if you are actually
anything back in the CFHTTP variable before you try and use it....does the
server have the ability to make http requests?


From: capik79 Date:   Friday, October 26, 2007
Hi John B,

Thx for the advise. But when I use .txt file its working fine but not .csv
file. And it also working fine in my server, for both .txt and .csv file (same
file tested). Any setting to check for the problem server?

Regards,
Shaffiq



Next Message: output in nested cfloop


Blogs related to CFHTTP problem

Trying to 'fail gracefully' from a cfhttp error
Jayesh, I am not worried about the timeout issue. I am worried about failing gracefully when, for example, the PC has lost power I can not connect, at all. Any ideas? -----Original Message----- ...

Trying to 'fail gracefully' from a cfhttp error
What happens if you directly access this URL "https://123.456.789.000/testpage.php" from Browser ? Do it work fine ? Looking at your error message it seems that you need to increase the Timeout period for you page( ...

Re: cfhttp XML from a directory problem
-paul ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. ...

Re: cfhttp XML from a directory problem
nice ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: ...

Error using CFHTTP
>>Does this mean that the return value is ;URL Interface? No, but apparently you are using CFHTTP to create a query, and the first line on the file contains the column names. The problem is that "URL Interface" is not a valid name for ...

RE: cfhttp XML from a directory problem
Doug -----Original Message----- From: Paul Ihrig [mailto:pihrig@gmail.com] Sent: Tuesday, September 11, 2007 12:21 PM To: CF-Talk Subject: cfhttp XML from a directory problem we have a page that post xml data which works fine. during ...


Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional