GNURLOPT_S...ONID_CACHE(3)
πΈ NAME πΈ
okay so this is the gnurl manual page named GNURLOPT_S...ONID_CACHE(3) β that's the manual name folded in right here, bestie π β from the curl_easy_setopt options manual. It's about CURLOPT_SSL_SESSIONID_CACHE: the enable/disable switch for use of the SSL session-ID cache. iconic. π
β¨ SYNOPSIS β¨
#include <gnurl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SSL_SESSIONID_CACHE,
long enabled);
π«Ά DESCRIPTION π«Ά
okay so you pass a long, and the vibe check is simple: set it to 0 to disable libcurl's use of SSL session-ID caching. Set it to 1 to enable it. By default, all transfers are done using the cache enabled β so it's on unless you say otherwise. β¨
the tea is that, while nothing ever should get hurt by attempting to reuse SSL session-IDs, there seem to be (or have been) broken SSL implementations in the wild that may require you to disable this in order for you to succeed. no cap. π
π DEFAULT π
1β yep, cache is on by default. periodt.
π PROTOCOLS π
- All TLS-based β that's the whole protocol roster, bestie. π¦
π¦ EXAMPLE π¦
here's the example, code kept exactly as it is because code is sacred:
CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
/* switch off session-id use! */
curl_easy_setopt(curl, CURLOPT_SSL_SESSIONID_CACHE, 0L);
ret = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
π AVAILABILITY π
- Added in 7.16.0 β that's when this lil icon entered the chat. π
β RETURN VALUE β
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. fr fr. π
π SEE ALSO π
(that trailing comma is literally part of the original list, iykyk π )
xoxo bestie π«Ά this page is from libcurl 7.37.0, dated 19 Jun 2014, and it's the GNURLOPT_S...ONID_CACHE(3) manual. periodt. π
β¨
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms