cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Post using https -- how can I avoid "Content-Length: 0"?

From: Jeff & Lita Pratt <jcpratt_at_spiritone.com>
Date: Wed, 14 Mar 2012 15:13:48 -0700

On Wed, 14 Mar 2012 22:17:15 +0100 (CET), Daniel Stenberg
<daniel_at_haxx.se> wrote:
> On Wed, 14 Mar 2012, Jeff Pratt wrote:
>
>> cresult = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
>> curl_slist_free_all(headers); /* free custom header list */
>
> CURLOPT_HTTPHEADER will _not_ copy the list you pass in, so you
> better let it linger around until after you've called
> curl_easy_perform()...

Ahhhhhaaaaaaaa!
Yes -- that seems to have done the trick!
Thank You!

JcP

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-03-14