cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl does not update cookie

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

Hello,

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
options.

Added the option you mentioned:

curl_easy_setopt (m_curl, CURLOPT_COOKIELIST, "Set-Cookie:
test_cookie_2=base_value2");

Got the same behavior.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-05-24