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:

  • 0 is 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