| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Re: ftp-dir
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 26 Oct 2005 20:22:01 +0200 (CEST)
On Wed, 26 Oct 2005, iler_ml_at_fastmail.fm wrote:
> I want to do ftp-dir using easy interface.
You mean you want to list all entries within a directory?
> I searched the libcurl docs for how to do ftp-dir.
You add a slash to the end of the URL. Like ftp://host/dir/
> I found CURLOPT_FTPLISTONLY and CURLOPT_CUSTOMREQUEST options, but I am
Set the options, call curl_easy_perform().
> Can anyone post a pseudocode/outline of easy-interface call sequence for
handle = curl_easy_init();
curl_easy_setopt(handle, CURLOPT_FTPLISTONLY, TRUE);
curl_easy_cleanup(handle);
> P.S. The only guess I can make is that to perform ftp-dir, is the wild guess
"DIR" is not a FTP command. See RFC959 for details.
And you only need to use CURLOPT_CUSTOMREQUEST if you don't want the command
And CURLOPT_FTPLISTONLY isn't strictly necessary either, only if you want to
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2005-10-26 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info