Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
CURLOPT_DNS_USE_GLOBAL_CACHE(3) | Library Functions Manual | CURLOPT_DNS_USE_GLOBAL_CACHE(3) |
NAME
CURLOPT_DNS_USE_GLOBAL_CACHE - global DNS cacheSYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_DNS_USE_GLOBAL_CACHE,
long enable);
DESCRIPTION
Has no function since 7.62.0. Do not use!DEFAULT
0PROTOCOLS
This functionality affects all supported protocolsEXAMPLE
int main(void)
{
CURL *curl = curl_easy_init();
if(curl) {
CURLcode ret;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
/* switch off the use of a global, thread unsafe, cache */
curl_easy_setopt(curl, CURLOPT_DNS_USE_GLOBAL_CACHE, 0L);
ret = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
}
DEPRECATED
Deprecated since 7.11.1. Functionality removed in 7.62.0.AVAILABILITY
Added in curl 7.9.3RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.SEE ALSO
CURLOPT_DNS_CACHE_TIMEOUT(3), CURLOPT_SHARE(3)2024-12-21 | libcurl |