curl-library
Re: libcurl does not update cookie
Date: Fri, 22 May 2015 16:29:55 +0300
I.e. :
Request:
Cookie: test_cookie_2=base_value2;
Response:
Set-Cookie: test_cookie_2=value2
Second request to the redirected URL:
Cookie: test_cookie_2=value2; test_cookie_2=base_value2;
Just tested it with the latest version of libcurl.
On 5/22/2015 4:24 PM, Alexander Dyagilev wrote:
> On 5/22/2015 4:14 PM, Daniel Stenberg wrote:
>> On Fri, 22 May 2015, Alexander Dyagilev wrote:
>>
>>> "slist" contains the list of my additional headers. One of headers
>>> contains Cookie field. Its content is:
>>>
>>> Cookie: test_cookie_2=base_value2
>>
>> 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.
>
> Thanks for the response. OK, I understand. But.
> I also tried to set cookie using this way:
>
> |curl_easy_setopt(m_curl, CURLOPT_COOKIE, "test_cookie_2=base_value2;");
>
> And do not send them via||CURLOPT_HTTPHEADER header.|
> Libcurl behaved exactly the same way. It seems that is not OK?
>
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-05-22