cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Clear cookie file in Libcurl

From: east2006 east2006 <east2006_at_gmail.com>
Date: Fri, 29 Apr 2011 19:15:35 +0300

I know, but if I have a working handle it may cause an exception.
Maybe I'll just erase a specific cookie, I failed to do that too, I tried:

curl_easy_setopt( curl, CURLOPT_COOKIELIST, "ALL" );
and
curl_easy_setopt(curl,CURLOPT_COOKIE, NULL);

How can I successfully delete a cookie from a file?

Thank you.

On Fri, Apr 29, 2011 at 5:23 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Fri, 29 Apr 2011, east2006 east2006 wrote:
>
> I want to remove the cookies from the file on the disk.
>>
>
> remove(), unlink() or truncate() are working alternatives. You don't need
> to use libcurl to do that!
>
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-04-29