---
name: "CURLINFO_PROXY_SSL_VERIFYRESULT"
section: "3"
platform: "macos"
package: "curl"
version: "166.0.0.0.1"
release: "macOS 26.5"
platforms: ["linux", "macos"]
url: "https://new.carta.tech/CURLINFO_PROXY_SSL_VERIFYRESULT"
---

# CURLINFO\_PROXY\_SSL\_VERIFYRESULT(3)

get the result of the proxy certificate verification

## NAME

CURLINFO\_PROXY\_SSL\_VERIFYRESULT - get the result of the proxy certificate verification

## SYNOPSIS

```
#include <curl/curl.h>
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_PROXY_SSL_VERIFYRESULT,
                           long *result);
```

## DESCRIPTION

Pass a pointer to a long to receive the result of the certificate verification that was requested (using the *[CURLOPT\_PROXY\_SSL\_VERIFYPEER(3)](/CURLOPT_PROXY_SSL_VERIFYPEER/3.md)* option. This is only used for HTTPS proxies.

## PROTOCOLS

All

## EXAMPLE

```
int main(void)
{
  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);
    if(res)
      printf("error: %s\n", curl_easy_strerror(res));
    curl_easy_getinfo(curl, CURLINFO_PROXY_SSL_VERIFYRESULT, &verifyresult);
    printf("The peer verification said %s\n", verifyresult?
           "fine" : "bad");
    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.

## SEE ALSO

[**CURLINFO\_SSL\_VERIFYRESULT**(3)](/CURLINFO_SSL_VERIFYRESULT/3.md), [**curl\_easy\_getinfo**(3)](/curl_easy_getinfo/3.md), [**curl\_easy\_setopt**(3)](/curl_easy_setopt/3.md)
