curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: curl_global_init and https://curl.se/libcurl/c/simple.html

From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Thu, 13 Jan 2022 15:51:47 +0100 (CET)

On Thu, 13 Jan 2022, Gavin Henry via curl-library wrote:

> curl_global_init(CURL_GLOBAL_ALL);
>
> always be used?

It should be used, yes. If it isn't, it will be call it for you, but then it
will be called in "a less controlled way" where the usage restrictions for
curl_global_init are harder to be in control of.

> docs/examples/simple.c

I've purposedly avoided that call in that example just to keep it minimal.

-- 
  / 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.haxx.se/mail/etiquette.html
Received on 2022-01-13