On Thu, 22 Sep 2022, Daniel F via curl-library wrote:
You can consider another approach for this - add new global function curl_global_setopt. It would better fit how libcurl works now. This new function should be called after curl_global_init/curl_global_init_mem and before any other libcurl calls.
In theory, yes. We have however rather tried to decrease the use of globals over time since they make things complicated in multi-threaded situations.
-- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://curl.se/support.html -- Unsubscribe: https://lists.haxx.se/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.html