Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

curlopt_ftp_ssl_ccc(3) [mojave man page]

CURLOPT_FTP_SSL_CCC(3)					     curl_easy_setopt options					    CURLOPT_FTP_SSL_CCC(3)

NAME
CURLOPT_FTP_SSL_CCC - switch off SSL again with FTP after auth SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_FTP_SSL_CCC, long how); 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 long using one of the values below CURLFTPSSL_CCC_NONE Don't attempt to use CCC. CURLFTPSSL_CCC_PASSIVE Do not initiate the shutdown, but wait for the server to do it. Do not send a reply. CURLFTPSSL_CCC_ACTIVE Initiate the shutdown and wait for a reply. DEFAULT
CURLFTPSSL_CCC_NONE PROTOCOLS
FTP EXAMPLE
TODO AVAILABILITY
Added in 7.16.1 RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. SEE ALSO
CURLOPT_USE_SSL(3), CURLOPT_FTPSSLAUTH(3), libcurl 7.54.0 February 03, 2016 CURLOPT_FTP_SSL_CCC(3)

Check Out this Related Man Page

CURLOPT_USE_SSL(3)					     curl_easy_setopt options						CURLOPT_USE_SSL(3)

NAME
CURLOPT_USE_SSL - request using SSL / TLS for the transfer SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_USE_SSL, long level); DESCRIPTION
Pass a long using one of the values from below, to make libcurl use your desired level of SSL for the transfer. These are all protocols that start out plain text and get "upgraded" to SSL using the STARTTLS command. This is for enabling SSL/TLS when you use FTP, SMTP, POP3, IMAP etc. CURLUSESSL_NONE Don't attempt to use SSL. CURLUSESSL_TRY Try using SSL, proceed as normal otherwise. CURLUSESSL_CONTROL Require SSL for the control connection or fail with CURLE_USE_SSL_FAILED. CURLUSESSL_ALL Require SSL for all communication or fail with CURLE_USE_SSL_FAILED. DEFAULT
CURLUSESSL_NONE PROTOCOLS
FTP, SMTP, POP3, IMAP EXAMPLE
CURL *curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, "ftp://example.com/dir/file.ext"); /* require use of SSL for this, or fail */ curl_easy_setopt(curl, CURLOPT_USE_SSL, CURLUSESSL_ALL); /* Perform the request */ curl_easy_perform(curl); } AVAILABILITY
Added in 7.11.0. This option was known as CURLOPT_FTP_SSL up to 7.16.4, and the constants were known as CURLFTPSSL_* RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. SEE ALSO
CURLOPT_SSLVERSION(3), CURLOPT_SSL_OPTIONS(3), libcurl 7.54.0 February 03, 2016 CURLOPT_USE_SSL(3)
Man Page

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix

Hello Everybody I would like to ask about the difference between UNIX and LINUX? Are they same or they differ from each othere? I will wait your reply? Your new friend: Elmo7eb (4 Replies)
Discussion started by: Elmo7eb
4 Replies

2. UNIX for Advanced & Expert Users

SSL ftp from Unix

I need to make an SSL FTP connection from my Unix machine to an SSL FTP server. I've found lots of SSL-capable FTP clients for windows machines, but can't seem to find any for Unix (HP-UX 11i, to be specific). I found, and have tried a package called tlswrap, but that is not working. Anybody... (2 Replies)
Discussion started by: denverd0n
2 Replies

3. Solaris

FTPS : FTP with certificates

Does anyone know of any products that support FTPS (FTP with SSL). Or does anyone out there run this now? any experiences? This is particularly to support the Cuncur expense system, I don tknow if anyone works with them at all, but they dont support sftp, just ftps. Thanks,!! (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

4. UNIX for Dummies Questions & Answers

Setting up VSFTPD (force SSL?)

Hi all, Im having trouble setting up an FTP server and forcing SSL. At the moment i can connect to the server externally using normal FTP but when i try FTP with SSL i get STATUS:> Connected. Exchanging encryption keys... ERROR:> SSL: Error in negotiating... (5 Replies)
Discussion started by: mokachoka
5 Replies

5. Shell Programming and Scripting

FTP GET with exception handeling and multiple conditions

Thanks everyone for the wonderful and helping environment.. And the problem I asked.. forget it... 4 days wait for a decent reply was such a moral booster.. (3 Replies)
Discussion started by: ReignOfChaos
3 Replies

6. UNIX for Dummies Questions & Answers

FTP Getting a Folder

I am a total noob assume i know nothing I have dabbed in it a little in the past but that was so long ago i have forgotten it all. Back story: (short version) Rented a web server from xenon servers. Need it to Grab some files from another server from xenon (minecraft server) (images of the map)... (4 Replies)
Discussion started by: RustyDagger
4 Replies

7. Shell Programming and Scripting

I sent the file via FTP. Simply How do I control it?

Hi, I sent the file via FTP. Simply How do I control it? Thanks. (7 Replies)
Discussion started by: ozcanaydin
7 Replies