curl-users
Re: Promlem deallocating slist of HTTP headers in libcurl multi interface
Date: Fri, 4 Dec 2009 11:50:32 +0530
Thanks Daniel,
So I need to keep track of all the memory allocated (It
can be slist or url ) I passed to libcurl using curl_easy_setop() so that
when the transfer completes I can deallocate those memory blocks.
Don't you think If the library provides any interface a
context which can be retrieved later It would have been a more convenient ?
On Fri, Dec 4, 2009 at 3:39 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> 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
>
-------------------------------------------------------------------
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-04