Re: Use of cookies

2020-04-06 Thread Tomalak Geret'kal via curl-library
On 06/04/2020 18:02, Tomalak Geret'kal wrote: > It is more likely that curl_east_setopt is expecting the > C-string you give it to live for the duration of the handle > (as it does with the request headers). > > Thus, switching to a "buffer" may not be enough (the pointer > you were extracting from

Re: Use of cookies

2020-04-06 Thread Tomalak Geret'kal via curl-library
On 06/04/2020 17:41, Mac-Fly via curl-library wrote: > I understand that and I was compiling a minimal example > for you. While doing so I found the error!!! > In the libCURL example (cookies_interface.c), you call: > curl_easy_setopt([CURL_handle], CURLOPT_COOKIELIST, cookie); > ...where "cookie"

Re: Use of cookies

2020-04-06 Thread Mac-Fly via curl-library
tings cookies must be done through buffers. Period. Thank you anyway for the time you took and of course for libCURL! ;-) Best regards, Morten. - Original Message - From: Daniel Stenberg To: Mac-Fly via curl-library Cc: Mac-Fly Date: Mon, 6 Apr 2020 15:08:03 +0200 (CEST) Subject: Re: Use o

Re: Use of cookies

2020-04-06 Thread Daniel Stenberg via curl-library
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

Use of cookies

2020-04-06 Thread Mac-Fly via curl-library
Dear all, I am trying to use cookie interface but I am probably missing something obvious. What I do (note that I want to limit the cookies for each libCURL call to a minimum): (...after the usual initialisation...) I call: - curl_easy_setopt([CURL_handle], CURLOPT_COOKIEFILE, ""); >> to start