mirror of
https://github.com/curl/curl.git
synced 2026-04-15 04:21:42 +03:00
examples/https.c: use CURLOPT_CA_CACHE_TIMEOUT
for demonstration purposes Closes #11290
This commit is contained in:
parent
c23dc42f39
commit
555bacd6d5
1 changed files with 3 additions and 0 deletions
|
|
@ -63,6 +63,9 @@ int main(void)
|
|||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
||||
#endif
|
||||
|
||||
/* cache the CA cert bundle in memory for a week */
|
||||
curl_easy_setopt(curl, CURLOPT_CA_CACHE_TIMEOUT, 604800L);
|
||||
|
||||
/* Perform the request, res will get the return code */
|
||||
res = curl_easy_perform(curl);
|
||||
/* Check for errors */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue