curl-library
Re: Delete single cookie
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 2 Aug 2008 22:41:46 +0200 (CEST)
Date: Sat, 2 Aug 2008 22:41:46 +0200 (CEST)
On Thu, 31 Jul 2008, Niall Twomey wrote:
> curl_easy_setopt( curlHandle, CURLOPT_COOKIELIST, "ALL" );
This deletes all cookies from libcurl's internal list, yes.
> curl_easy_setopt( curlHandle, CURLOPT_COOKIE, cookie_string );
This adds the given string to the outgoing Cookie: header in the request, it
DOES NOT add any cookies to libcurl's internal list of cookies. Use
CURLOPT_COOKIELIST for that. You can in fact also use CURLOPT_COOKIELIST to
"delete" a cookie by simply setting it again with an expired time or similar.
-- / daniel.haxx.seReceived on 2008-08-02