curl-library
Re: CURLOPT_USE_SSL,CURLOPT_FTP_SSL, CURLOPT_FTPSSLAUTH
Date: Mon, 22 Jul 2013 10:00:34 -0600
On Jul 21, 2013, at 6:07 PM, Roger Cabo - gfa_at_trainzland.com <gfa_at_trainzland.com> 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
Received on 2013-07-22