Re: libCurl equivalent to command line --ftp-ssl ??
Date: Tue, 22 Jun 2004 11:02:59 +0200 (CEST)
On Mon, 21 Jun 2004, Swati Vakharia wrote:
> what is the libcurl equivalent to the command line switch --ftp-ssl? I am
> trying to connected to an ftp server over ssl and i would like to write a
> program in perl to do that. I am not too sure of the actual options that i
> need to have set. So far the following is what I have and its denying my
> $code = $curl->setopt(CURLOPT_FTP_SSL,CURLFTPSSL_ALL);
The curl option --ftp-ssl sets the libcurl option:
curl_easy_setopt(curl, CURLOPT_FTP_SSL, CURLFTPSSL_TRY);
I suggest you use --verbose or --trace and VERBOSE or DEBUGFUNCTION to see
what differences you get.
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2004-06-22