CURL.SetOptionFTPSSLCCC
-----------------------

If enabled, this option makes libcurl use CCC (Clear Command Channel).

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

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

**MBS**( **"CURL.SetOptionFTPSSLCCC";** /\* If enabled, this option makes libcurl use CCC (Clear Command Channel). \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**) /\* Whether to use CCC command.e.g. 2 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| Value | Whether to use CCC command. | 2 |

### Result

Returns "OK" on success.

### Description

If enabled, this option makes libcurl use CCC (Clear Command Channel).   
It shuts down the SSL/TLS layer after authenticating. The rest of the control channel communication will be unencrypted. This allows NAT routers to follow the FTP transaction. Pass a number using one of the values below. (Added in 7.16.1)  
  
| CURLFTPSSL\_CCC\_NONE | 0 | Don't attempt to use CCC. |
|---|--:|---|
| CURLFTPSSL\_CCC\_PASSIVE | 1 | Do not initiate the shutdown, but wait for the server to do it. Do not send a reply. |
| CURLFTPSSL\_CCC\_ACTIVE | 2 | Initiate the shutdown and wait for a reply. |

See also [FTP\_SSL\_CCC](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_SSL_CCC.html) option in CURL manual.

### See also

- [CURL.SetOptionFTPPort](CURLSetOptionFTPPort.md)
- [CURL.SetOptionFTPSSLAuth](CURLSetOptionFTPSSLAuth.md)
- [CURL.SetOptionSSLCert](CURLSetOptionSSLCert.md)

### Blog Entries

- [Translating Insert from URL options for CURL to MBS Plugin calls](https://www.mbsplugins.de/archive/2020-12-14/Translating_Insert_from_URL_op/monkeybreadsoftware_blog_filemaker)

Created 18th August 2014 , last changed 18th August 2014

  
[CURL.SetOptionFTPSSLAuth](CURLSetOptionFTPSSLAuth.md) - [CURL.SetOptionFTPSkipPasvIP](CURLSetOptionFTPSkipPasvIP.md)

[HTML Version](CURLSetOptionFTPSSLCCC.shtml)