CURL.SetOptionProxyCAInfo
-------------------------

The CApath or CAfile used to validate the proxy certificate.

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

MBS( "CURL.SetOptionProxyCAInfo"; curl; Path ) 

**MBS**( **"CURL.SetOptionProxyCAInfo";** /\* The CApath or CAfile used to validate the proxy certificate. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Path**) /\* The native file path. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| Path | The native file path. |  |

### Result

Returns OK or error.

### Description

The CApath or CAfile used to validate the proxy certificate.  
This option is used only if [CURL.SetOptionProxySSLVerifyPeer](CURLSetOptionProxySSLVerifyPeer.md) is true  
  
This function requires a native path. Use [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md) to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use [FileDialog](component_FileDialog.md) functions.  
For Server be aware that server has limited permissions and may not be able to access all files on a computer.  
See also [PROXY\_CAINFO](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_CAINFO.html) option in CURL manual.

### See also

- [CURL.SetOptionProxy](CURLSetOptionProxy.md)
- [CURL.SetOptionProxyCAInfoBlob](CURLSetOptionProxyCAInfoBlob.md)
- [CURL.SetOptionProxyCRLFile](CURLSetOptionProxyCRLFile.md)
- [CURL.SetOptionProxyHeader](CURLSetOptionProxyHeader.md)
- [CURL.SetOptionProxyPort](CURLSetOptionProxyPort.md)
- [CURL.SetOptionProxySSLCert](CURLSetOptionProxySSLCert.md)
- [CURL.SetOptionProxySSLKey](CURLSetOptionProxySSLKey.md)
- [CURL.SetOptionProxySSLVerifyPeer](CURLSetOptionProxySSLVerifyPeer.md)
- [CURL.SetOptionProxyType](CURLSetOptionProxyType.md)
- [CURL.SetOptionProxyUsername](CURLSetOptionProxyUsername.md)

### Release notes

- **Version 11.3**
    - Added [CURL.SetOptionCAInfoBlob](https://www.mbsplugins.eu/CURLSetOptionCAInfoBlob.shtml) and [CURL.SetOptionProxyCAInfoBlob](https://www.mbsplugins.eu/CURLSetOptionProxyCAInfoBlob.shtml) functions.

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

  
[CURL.SetOptionProxyAuth](CURLSetOptionProxyAuth.md) - [CURL.SetOptionProxyCAInfoBlob](CURLSetOptionProxyCAInfoBlob.md)

[HTML Version](CURLSetOptionProxyCAInfo.shtml)