cURL / Mailing Lists / curl-library / Single Mail

curl-library

How get fils's list from user root dir. (FTPS)

From: Shogin Michael <shogin_m_at_mail.ru>
Date: Fri, 28 Oct 2005 15:54:51 +0400

Hello.

I want to get files's lits.

use code like:
<code>
    curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
    curl_easy_setopt(curl, CURLOPT_USERPWD,"12:12");
    curl_easy_setopt(curl, CURLOPT_URL, "ftps://192.168.11.32:443/" );
    curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0);
    curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);
    curl_easy_setopt(curl, CURLOPT_SSLVERSION,2);
    curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteMemoryCallback);
    curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&chunk);
    res = curl_easy_perform(curl);
</code>

res = CURLE_FTP_WRITE_ERROR 20

out:
....
>User 12
>pass 12
*we have successfully logged in
>pwd
*Entry path is '/d:/mifody'
>epsv
>PASV
*About connect ...
*Connecting to ...
*Connected the data stream with PASV
>TYPE A
>LIST
*Getting file with size: -1
*Connected #0 left intact

use LIBCURL_VERSION "7.14.0".

This code without ssl support work correct.
Received on 2005-10-28