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" <[email protected]> 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
