CURL.SetOptionProxySSLVerifyHost
--------------------------------

Enable SSL Host verification.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CURL](component_CURL.md) | [8.2](newinversion82.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "CURL.SetOptionProxySSLVerifyHost"; curl; Value ) 

**MBS**( **"CURL.SetOptionProxySSLVerifyHost";** /\* Enable SSL Host verification. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**) /\* The option value. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| Value | The option value. |  |

### Result

Returns OK or error.

### Description

Enable SSL Host verification.  
Set if we should verify the Common name from the proxy certificate in ssl handshake, set 1 to check existence, 2 to ensure that it matches the provided hostname.  
See also [PROXY\_SSL\_VERIFYHOST](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSL_VERIFYHOST.html) option in CURL manual.

### See also

- [CURL.SetOptionDOHSSLVerifyHost](CURLSetOptionDOHSSLVerifyHost.md)
- [CURL.SetOptionProxySSLCertBlob](CURLSetOptionProxySSLCertBlob.md)
- [CURL.SetOptionProxySSLCertType](CURLSetOptionProxySSLCertType.md)
- [CURL.SetOptionProxySSLCipherList](CURLSetOptionProxySSLCipherList.md)
- [CURL.SetOptionProxySSLKeyBlob](CURLSetOptionProxySSLKeyBlob.md)
- [CURL.SetOptionProxySSLKeyType](CURLSetOptionProxySSLKeyType.md)
- [CURL.SetOptionProxySSLOptions](CURLSetOptionProxySSLOptions.md)
- [CURL.SetOptionProxySSLVerifyPeer](CURLSetOptionProxySSLVerifyPeer.md)
- [CURL.SetOptionProxySSLVersion](CURLSetOptionProxySSLVersion.md)
- [CURL.SetOptionSSLVerifyHost](CURLSetOptionSSLVerifyHost.md)

Created 15th April 2018 , last changed 16th April 2018

  
[CURL.SetOptionProxySSLOptions](CURLSetOptionProxySSLOptions.md) - [CURL.SetOptionProxySSLVerifyPeer](CURLSetOptionProxySSLVerifyPeer.md)

[HTML Version](CURLSetOptionProxySSLVerifyHost.shtml)