curl-users
Re: Server Response
Date: Wed, 8 Nov 2006 16:45:47 +0100 (CET)
On Wed, 8 Nov 2006, Michel Lemieux wrote:
> Is there a STANDARD in how any FTP Server should reply to such request?
> If so, where can one see what that is?
You don't really explain what "such" means, but if you mean how it shows a
directory listing then the answer is (depressingly enough) no.
> Is it possible to get the whole FTP directory (recursive?) in one call?
Not with curl, no. Unless you use -X "LIST -R", and hope that the server can
do it that way.
> I am currently issuing a new "curl" request for found folder, this is too
> slow to my liking...
Yeah, if you're bound to use curl for this you should consider basing
something on libcurl as that wouldn't have to disconnect from the server
between each command.
> I am currently issuing "do shell script" commands that uses an OS shell to
> to deal with "curl", is there a better way and if so are there any example
> on our to implement it?
There's a libcurl binding to every somewhat largish language out there, and
using a such would enable you to write an app for this that performs a whole
lot better.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2006-11-08