cURL / Mailing Lists / curl-library / Single Mail

curl-library

Fw: Re[2]: ftp: curl-library

From: Eugene Kravchenko <eugene22_at_mail.ru>
Date: Tue, 30 Aug 2005 17:53:57 +0400

> > 1. What the ways to do this with libcurl? - connect to the server - get list
> > of all files - look for modification time change - upload changed files.
>
> If you want to only list files, use a URL that ends with a slash.
>
> You can set CURLOPT_FTPLISTONLY to non-zero, which then makes libcurl send
> NLST intead of LIST.
>
> You can also optionally change the "LIST" or "NLST" commands by setting
> CURLOPT_CUSTOMREQUEST to whatever you please.
>
> > 2. When I try do "LIST" command for ftp protocol wia curl_easy_setopt() my
> > application don't response :(
>
> Adding LIST with the *QUOTE option doesn't work since LIST requires a second
> connection to get setup and used and the *QUOTE function doesn't support that.

Thanks for your answer.

Another question:

1. Can I get a list of current path in memory?
2. Is the curl-library supports ALL commands of ftp and sftp protocols?
3. When I use curl_slist_append(), for example

        slist = curl_slist_append(slist, "CWD /my_test");
        slist = curl_slist_append(slist, "PWD");
        slist = curl_slist_append(slist, "PASV");
        slist = curl_slist_append(slist, "TYPE A");

and then

        res = curl_easy_perform(curl);

After that curl-library begin perform all of this operations.
Suppose something wrong with connection in that time.
How can I know what commands from my slist already done and what's not?
and how I can resume my slist commands from crashed command?

Best regards, Eugene
And sorry for my english.
Received on 2005-08-30