curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_COOKIEFILE with "-" as filename freezes program

From: Aron Bergman <bathingrad_at_gmail.com>
Date: Tue, 13 Mar 2018 15:44:56 +0100

2018-03-13 13:03 GMT+01:00 Daniel Stenberg <daniel_at_haxx.se>:

> On Tue, 13 Mar 2018, Aron Bergman wrote:
>
> Oh, I just realized that I misunderstood this. COOKIELIST works as
>> intended, it just save the cookies, not read them (I mixed the meanings up),
>>
>
> CURLOPT_COOKIELIST let's you add cookies to the in-memory cookie jar. It
> also offers some "commands" to manipulate that cookie jar. Not sure what
> you mean with "save", but maybe we mean the same thing?
>
> You can read them as well, with the curl_easy_getinfo's corresponding
> CURLINFO_COOKIELIST option. Similar name, but that's for *reading* cookies.
>
> which is why the program "froze", it just awaited input from the command
>> line.
>>
>
> I don't understand how this option relates to any command line?
>
> I still think that the documentation should use "" as the argument value
>> or it should be stated that using "-" will require input (or CTRL + D).
>>
>
> "-" means libcurl will read from stdin instead of a file. It just seems it
> isn't mentioned in the CURLOPT_COOKIEFILE man page. I'll fix that right now.
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
> Etiquette: https://curl.haxx.se/mail/etiquette.html

Yeah, I misunderstood the COOKIELIST option.

> I'll fix that right now.
Great!

Regards
Aron Bergman

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-03-13