[Perl Bindings] ftp-connection (ssl/tls) with WWW::Curl::Easy
Date: Tue, 6 Nov 2007 16:41:06 +0100
I using the command  to establish a tls secured ftp connection.
The command is working to my satisfaction.
Now i would like to write a perl script using WWW::Curl::Easy. My
script is basically working, but the ftp connection is not using
| use WWW::Curl::Easy;
| my $curl = new WWW::Curl::Easy;
| $curl->setopt(CURLOPT_TIMEOUT, 20);
| $curl->setopt(CURLOPT_CONNECTTIMEOUT, 15);
| $curl->setopt(CURLOPT_VERBOSE, TRUE);
| $curl->setopt(CURLOPT_USE_SSL, CURLUSESSL_CONTROL);
| $curl->setopt(CURLOPT_FTPSSLAUTH, CURLFTPAUTH_TLS);
| $curl->setopt(CURLOPT_URL, "ftp://192.168.0.10:21");
| $curl->setopt(CURLOPT_USERPWD, "a:b");
If i configure my ftpd to allow only tls secured connections, i'm
not able to connect. The same problem is described in .
I have installed the following libraries:
The options 'CURLOPT_USE_SSL' and 'CURLOPT_FTPSSLAUTH' seem not
to have any effect! How can i fix this problem?
I insist on using libcurl as i don't want to call the curl binary
out of my perl script.
Thanks for your answers!
--  curl -v --ftp-ssl --insecure ftp://a:firstname.lastname@example.org:21  http://curl.haxx.se/mail/lib-2006-02/0027.htmlReceived on 2007-11-06