On Jul 21, 2013, at 6:07 PM, Roger Cabo - [email protected] 
<[email protected]> wrote:

> the easy option for FTP and auth "TSL" is irritating me. there are 3 options. 
> I want FTPS over expicit "TLS/SSL" 
> 
> 1) 
> ~curl_easy_setopt(curl, CURLOPT_FTP_SSL, CURLFTPAUTH_TLS)
> or
> ~curl_easy_setopt(curl, CURLOPT_USE_SSL, CURLFTPAUTH_TLS)
> or
> ~curl_easy_setopt(curl, CURLOPT_FTPSSLAUTH, CURLFTPAUTH_DEFAULT)
> 
> What's correct here?

None of the above: Use CURLOPT_USE_SSL with the option CURLUSESSL_CONTROL (for 
just the control channel) or CURLUSESSL_ALL (for the control and data 
channels). And don't forget to make the URL an "ftp" URL as well.

Nick Zitzmann
<http://www.chronosnet.com/>


-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to