curl-library
Re: libcurl FTP - directory listing by file mask
Date: Fri, 28 Mar 2008 13:57:15 -0700
On Fri, Mar 28, 2008 at 04:30:44PM -0400, Alla Bogolubov wrote:
> It looks like data connection cannot be built when NLST is supplied in
> CURLOPT_QUOTE list.
Which is what I said.
> As soon as I uncomment curl_easy_setopt(curl, CURLOPT_FTPLISTONLY, 1) it
> works just fine, but as one would expect, it transfers the whole
> directory.
[...]
> We have currently implemented FTP functionality w/o libcurl by sending
> RFC959 commands via open socket connection. Sending "NLST *.txt" returns
> an output identical to 'ls' in built-in client implementation.
If you're saying "NLST *.txt" in your program is returning the same as 'ls'
in the client, it means your FTP server doesn't support globbing on NLST
and you'll have to do it yourself in your app.
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2008-03-28