On Sun, 8 Dec 2024, Scott Talbert wrote:
Why do this in libcurl when you can with less effort do that logic in your
application? Then you can make it work exactly the way you want it to,
without having to care about others.
Calling pycurl an application is a bit of a stretch, but I suppose from
libcurl's perspective, everything is an application. :)
Yeah. I suppose I should have said "in your code using libcurl".
Initially, I wasn't thinking it would be possible to do runtime CA bundle
auto-detection in a way that's transparent to end users of pycurl, but after
looking at how libcurl handles CURL_CA_BUNDLE (it seems to ultimately do
what setting CURLOPT_CAINFO does), I think it should be fine for pycurl to
set CURLOPT_CAINFO before handing over the handle to the end user.
What code in libcurl does this in runtime? I can't find any such code. I think
you might look at code in the curl tool, which incidentally is an application
using libcurl... :-)
--
/ daniel.haxx.se || https://rock-solid.curl.dev
--
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html