CURLINFO_PROXY_SSL_VERIFYRESULT(3)
πΈ NAME πΈ
okay so CURLINFO_PROXY_SSL_VERIFYRESULT(3) β from the Library Functions Manual β is literally the result of proxy certificate verification. π
β¨ SYNOPSIS β¨
bestie, the include and the function go like this, exactly:
#include <curl/curl.h>
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_PROXY_SSL_VERIFYRESULT,
long *result);
π¦ DESCRIPTION π¦
so 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 one is only used for HTTPS proxies, okay? π
then the vibe check on the number is simple:
0is a positive result β slay. β¨- non-zero is an error β not slay. π
π PROTOCOLS π
This functionality affects all TLS based protocols: HTTPS, FTPS, IMAPS, POP3S, SMTPS etc. no cap.
and it only works with these TLS backends: GnuTLS and OpenSSL. periodt. π₯
π§ EXAMPLE π§
hereβs the whole example, copied exactly because we do not mess with code:
int main(void)
{
CURL *curl = curl_easy_init();
if(curl) {
CURLcode result;
long verifyresult;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy.example:443");
result = curl_easy_perform(curl);
if(result) {
printf("error: %s\n", curl_easy_strerror(result));
curl_easy_cleanup(curl);
return 1;
}
result = curl_easy_getinfo(curl, CURLINFO_PROXY_SSL_VERIFYRESULT,
&verifyresult);
if(!result) {
printf("The peer verification said %s\n",
(verifyresult ? "bad" : "fine"));
}
curl_easy_cleanup(curl);
}
}
β AVAILABILITY β
Added in curl 7.52.0. iconic. π
π RETURN VALUE π
curl_easy_getinfo(3) returns a CURLcode indicating success or error.
CURLE_OK (0) means everything was OK, non-zero means an error occurred, see libcurl-errors(3).
π SEE ALSO π
π source/version: libcurl Β· date: 2026-10-12 Β· page: CURLINFO_PROXY_SSL_VERIFYRESULT(3) β byeee bestie, go verify those proxies π«Άβ¨
π¦ where this page comes from
- fedora 44: libcurl-devel 8.18.0-14.fc44 Β· curl
- fedora 44: libcurl-devel 8.18.0-14.fc44 Β· curl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms