I’m using libcurl API into a custom c++11 application. Since curl has several options, I would like the application to be able to load all of the options from a configuration file. I saw that the command-line curl application can do this: https://everything.curl.dev/cmdline/configfile.html
However, when looking trough the API and even browsing a bit trough the source code, I could not find an easy way of setting all my curl handle’s options trough a file. Something like:
curl_load_file(CURL * curl, const char* filePath);
or similar. I’m at the brink of starting a project of my own that would do this, but it really feels that I am reinventing the wheel.
Does anyone know of any easy way of doing this?