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: Cookie storage customization?

From: Dan Fandrich via curl-library <curl-library_at_lists.haxx.se>
Date: Tue, 14 Sep 2021 14:31:49 -0700

On Tue, Sep 14, 2021 at 09:40:34PM +0200, Isaac Jurado via curl-library wrote:
> I'm aware that the cookie jar is not mandatory and custom cookie storage could
> be implemented with ease.  However, some certain amount of logic, that libcurl
> already provides, would have to be replicated.  Mainly cookie parsing/filtering
> and redirections.

Does it not work to simply activate the libcurl cookie engine then use
CURLOPT_COOKIELIST and CURLINFO_COOKIELIST to restore and save the cookies into
a custom storage format? What logic would need to be duplicated? Or, are you
just talking about parsing the cookie line?

Dan
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2021-09-14