curl-library
Re: libcurl does not update cookie
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 22 May 2015 16:22:43 +0200 (CEST)
Date: Fri, 22 May 2015 16:22:43 +0200 (CEST)
On Fri, 22 May 2015, Alexander Dyagilev wrote:
>> This means that you UNCONDITIONALLY send that header in the request. You
>> wanted it, you got it. libcurl passes along what you asked it to pass
>> along.
>
> |curl_easy_setopt(m_curl, CURLOPT_COOKIE, "test_cookie_2=base_value2;");
Right, but that's just a shortcut for doing the same thing. It adds that to
the request, it does not add the cookie to the internal cookie storage. You
however can use CURLOPT_COOKIELIST for that.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2015-05-22