GNURLINFO_...RIFYRESULT(3)
πΈ NAME πΈ
okay so bestie, this is GNURLINFO_...RIFYRESULT(3), part of the curl_easy_getinfo options family, and the actual star is CURLINFO_PROXY_SSL_VERIFYRESULT β literally βget the result of the proxy certificate verificationβ. No cap, that's the whole job. π
β¨ SYNOPSIS β¨
#include <gnurl/curl.h>
CURLcode curl_easy_getinfo(CURL *handle,
CURLINFO_PROXY_SSL_VERIFYRESULT, long *result);
π DESCRIPTION π
You pass a pointer to a long, and it receives the result of the certificate verification that was requested using the CURLOPT_PROXY_SSL_VERIFYPEER(3) option. This is only used for HTTPS proxies. π¦
π PROTOCOLS π
All β that's the whole vibe. π«
π EXAMPLE π
Here's the code, bestie, copied exactly because we do not mess with the recipe:
CURL *curl = curl_easy_init();
if(curl) {
CURLcode res;
long verifyresult;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy:443");
res = curl_easy_perform(curl);
curl_easy_getinfo(curl, CURLINFO_PROXY_SSL_VERIFYRESULT, &verifyresult);
printf("The peer verification said %s\n", verifyresult?
"fine":"BAAAD");
curl_easy_cleanup(curl);
}
π§ AVAILABILITY π§
Added in 7.52.0. π
π RETURN VALUE π
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. That's it, that's the tea. π
π¦ SEE ALSO π¦
curl_easy_getinfo(3)curl_easy_setopt(3)CURLINFO_SSL_VERIFYRESULT(3), β yes bestie, the original has a trailing comma after this one, and we are leaving it right there. π
mwah π β this page is from libcurl 7.52.0, dated 16 Nov 2016, and it's GNURLINFO_...RIFYRESULT(3). byeee π«Ά
π¦ 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