Hi, first of all would be nice to see what you send and what other server
expecting:

Here is the sample of HTTP Post:
****************************************************************
<cfhttp url="#uri#" port="443" method="post">
        <cfhttpparam type="Header" name="Accept-Encoding"
value="deflate;q=0">
        <cfhttpparam type="Header" name="TE" value="deflate;q=0">
        <cfhttpparam type="header" name="Content-Type"
value="application/x-www-form-urlencoded"/>
        <cfhttpparam type="formfield" name="requestXml" value="#Trim(xml)#">

</cfhttp>
****************************************************************

Check if you have in your POST:

<cfhttpparam type="header" name="Content-Type"
value="application/x-www-form-urlencoded"/>


FYI: in a sample above it send request to 443 port which is SSL, in your
case it probably must be regular 80.

Maybe it can help.

Regards,
Misha

-----Original Message-----
From: Ken Willis [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 30, 2008 6:04 PM
To: CF-Newbie
Subject: CFHTTP POST Method

I am having a problem getting my head around using the post method over the
get method.  I have a issue where i need to post to a CGI server at another
location a series of parameters.  the GET method works, but the parameters a
need to send is too long to send as an encoded url.  i modified the program
to a POST and added the cfhttpparam tags for each variable a needed to send.
the server i sent it to does not see the parameters sent in the cfhttpparam
tags.  can anyone help me with this one.  i am missing something simple and
this is the first time i am using the post method of cfhttp. 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3682
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to