cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: List available curl options

From: Jeroen Ooms <jeroenooms_at_gmail.com>
Date: Sat, 13 Dec 2014 00:55:14 -0800

On Thu, Dec 11, 2014 at 12:06 AM, Dan Fandrich <dan_at_coneharvesters.com> wrote:
> The curl_easy_setopt call will return CURLE_UNKNOWN_OPTION or
> CURLE_NOT_BUILT_IN if the option is not supported. That's the most reliable way
> of telling. It's unusual that a program would need to know if an option is
> supported without actually trying to use that option.

And is there a way to test if particular CURLOPT_ value is present in
the CURLoption enum form curl.h when compiling? How does autoconf
figure this out?
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-12-13