cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: List available curl options

From: bch <brad.harder_at_gmail.com>
Date: Wed, 10 Dec 2014 23:24:53 -0800

I maintain analogous MYCURLOPT_OPTION making those options as index to char
*optname[] {}; array of strings representing supported options.

What are you trying to bind to?
On Dec 10, 2014 10:57 PM, "Jeroen Ooms" <jeroenooms_at_gmail.com> wrote:

> I'm writing some bindings to libcurl for a scripting language. I was
> wondering if there is an API call or some other method to list the
> options (CURLOPT_* values and their integer) that the linked version
> of libcurl supports?
>
> That would make it easier to test in the client if a particular option
> is available, and pass it to libcurl as the corresponding integer. I'm
> not sure how else to design a client where the user can specify an
> option (as a string), and then have it resolve to the appropriate
> CURLOPT value.
>
> How are other clients doing this?
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-12-11