cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Promlem deallocating slist of HTTP headers in libcurl multi interface

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 3 Dec 2009 23:09:14 +0100 (CET)

On Thu, 3 Dec 2009, Indrajit::waiting for connecting dots wrote:

> I have implemented a simple HTTP client using libcurl's multi interface.

Then the curl-library is the mailing list for you and questions such as this!

> I have added some headers like "Accept Ecoding: gzip, deflate" using
> curl_easy_setop() API by passing a slist.
>
> When a transfer completes I need to free the slist.
>
> Is there any way to get the slist pointer from the easy handle ?

No, you need to keep it around yourself.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-12-03