curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Use of cookies

From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Mon, 6 Apr 2020 15:08:03 +0200 (CEST)

On Mon, 6 Apr 2020, Mac-Fly via curl-library wrote:

> I call:
> - curl_easy_setopt([CURL_handle], CURLOPT_COOKIEFILE, "");
> - curl_easy_setopt([CURL_handle], CURLOPT_COOKIELIST, "ALL");
> - curl_easy_setopt([CURL_handle], CURLOPT_COOKIELIST, cookie);
> - curl_easy_perform([CURL_handle]); >> to launch the call
> - curl_easy_getinfo([CURL_handle], CURLINFO_COOKIELIST, &cookie_list);

If you temporary remove the 'curl_easy_perform' you can see if libcurl parsed
your incoming cookies as you expected it to.

> - the list of cookies is ever growing and not being reset

*ever growing* ? What exactly does that mean. Surely there can't be any more
than the ones you set plus the ones the site sets? How does it keep growing?

> - it never contains the cookies I set.

Without details (like exact contents of what is passed in to curl and server
response headers) nor a way to reproduce, it is very hard for us to guess what
the problem is.

-- 
  / daniel.haxx.se | Commercial curl support up to 24x7 is available!
                   | Private help, bug fixes, support, ports, new features
                   | https://www.wolfssl.com/contact/
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2020-04-06