cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURL_DISABLE_COOKIES and CURLOPT_VERBOSE

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 19 Jun 2012 23:39:41 +0200

On Tue, Jun 19, 2012 at 08:35:21AM -0700, Tom Bishop, Wenlin Institute wrote:
> As a relatively new user of libcurl, I made the silly mistake of trying to use cookies when CURL_DISABLE_COOKIES was defined. It took me a while to figure out what the problem was. To help others avoid the same mistake, maybe the following could be added in getinfo.c:

The curl_easy_setopt call should have returned CURLE_UNKNOWN_OPTION when
attempting to enable cookie handling in the first place. You are
checking the 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 2012-06-19