curl-library
Re: Making lack of cookie support more obvious
Date: Sun, 4 May 2014 12:42:13 +0200
On Sun, May 04, 2014 at 09:32:18AM +0200, Fabian Keil wrote:
> Recently a script [0] I infrequently use stopped working because
> curl had been configured without cookie support and thus the --cookie
> and --cookie-jar options were silently ignored.
>
> Obviously that was my mistake, but I think it would be preferable
> if the options were rejected with a clear error message and return
> code.
>
> It certainly would have helped me figure out the problem more
> quickly.
>
> Any opinions about this?
All the cookie options return CURLE_UNKNOWN_OPTION when set from
curl_easy_setopt, in the case when they've been disabled. You are checking that
return code, aren't you?
>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-05-04