W dniu 2022-09-22 03:21, Dan Fandrich via curl-library napisaĆ(a):
I'm betting that this problem can be fixed without adding a new
callback,
especially one that goes against the way libcurl works, namely that
callbacks
are used to change behaviour during a transfer.
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 the future you could also consider replacing curl_global_init_mem
with curl_global_setopt+curl_global_init calls.
Regards,
Daniel
--
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html