1) You are getting the column error because you are passing the "name"
attribute, which specifies a variable name for creating a query based
on the data returned (hence cf is looking for a list of column names
in the first line of the response)

2) Check out the livedocs!
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-p58.htm#wp1632966

I hope this helps you solve your problem. CFHTTP is a great tag, but
it is easy to get confused with all the parameters for its
wide-ranging capabilities.

Later.

----- Original Message -----
From: Bryan Stevenson <[EMAIL PROTECTED]>
Date: Wed, 28 Jul 2004 13:24:20 -0700
Subject: Re: CFHTTP
To: CF-Talk <[EMAIL PROTECTED]>

hmmmm...not sure what that column stuff is about....but have a look at
CFHTTPPARAM...it's used for passing in the URL params
"?name=searchname&number=123&search=all" properly

Sorry.,...tad rusty on CFHTTP....but that should shed some light

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]

   ----- Original Message -----
   From: Mickael
   To: CF-Talk
   Sent: Wednesday, July 28, 2004 1:06 PM
   Subject: CFHTTP


   Hello All,


   I have never used CFHTTP before,and I am running in to an issue.  I
would like to retrieve information from a form on a remote server.  If
I simple do this in IE .


   https://username:[EMAIL PROTECTED]/search.cgi?name=searchname&number=123&search=all


   This returns the proper information in my browser.


   So I tried this in CF


   <cfhttp
   name="username"
   password="password"
   method="get"
   url=""
   resolveurl="yes"></cfhttp>


   <cfoutput>
      #cfhttp.FileContent# </cfoutput>


   But I get the following error  
         The column name "<!DOCTYPE HTML PUBLIC -//IETF//DTD HTML
2.0//EN>" is invalid.
         Column names must be valid variable names. They must start
with a letter and can only include letters, numbers, and underscores.


   I don't really understand how columns work. I would just like to
display that page or save it to a variable.


   How do I deal with columns with CFHTTP?


   Mike________________________________
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to