cURL / Mailing Lists / curl-library / Single Mail


Re: libcurl does not update cookie

From: Alexander Dyagilev <>
Date: Sun, 24 May 2015 19:11:49 +0300


On 5/22/2015 5:22 PM, Daniel Stenberg wrote:
> 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.

Unfortunately, this did not help.

Completely removed using of both CURLOPT_COOKIE and CURLOPT_HTTPHEADER

Added the option you mentioned:

curl_easy_setopt (m_curl, CURLOPT_COOKIELIST, "Set-Cookie:

Got the same behavior.

List admin:
Received on 2015-05-24