cURL / Mailing Lists / curl-library / Single Mail

curl-library

List available curl options

From: Jeroen Ooms <jeroenooms_at_gmail.com>
Date: Wed, 10 Dec 2014 22:52:46 -0800

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
Received on 2014-12-11