cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 14 Mar 2012 22:17:15 +0100 (CET)

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()...

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