curl_easy_ssls_export: make the example more clear

refs #18031
This commit is contained in:
Stefan Eissing 2025-07-31 15:13:49 +02:00
parent 4108d11008
commit 0ca841cefc
No known key found for this signature in database

View file

@ -150,6 +150,12 @@ int main(void)
if(curl) {
curl_easy_setopt(curl, CURLOPT_SHARE, share);
/* run a transfer, all TLS sessions received will be added
* to the share. */
curl_easy_setopt(curl, CURLOPT_URL, "https://www.curl.se/");
curl_easy_perform(curl);
/* export the TLS sessions collected in the share */
rc = curl_easy_ssls_export(curl, my_export_cb, NULL);
/* always cleanup */