cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Need help with replacing cURL generated POST header

From: Michael Wood <esiotrot_at_gmail.com>
Date: Wed, 7 Sep 2011 10:34:41 +0200

Hi

On 6 September 2011 19:26, <Will.Hanson_at_equifax.com> wrote:
> I need some help with replacing the cURL generated POST header.
> I have followed the examples in my c program, using:
>
> struct curl_slist *slist=NULL;
> curl_slist_append(slist, "POST /COKE HTTP/1.1"); /* Set Header */

You should not do this. What you need to do is set CURLOPT_URL to
something like: "http://www.example.com/COKE".

Do not set a "header" like you are doing above.
"POST /COKE HTTP/1.1" is not a header.

-- 
Michael Wood <esiotrot_at_gmail.com>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-07