curl-users
Re: interactive ftps session with curl
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 31 Jan 2005 23:58:05 +0100 (CET)
Date: Mon, 31 Jan 2005 23:58:05 +0100 (CET)
On Mon, 31 Jan 2005, Edward Peschko wrote:
> Believe it or not, I've been to that page, checked out all the
> implementations, and there isn't a single one that satisfies my requirements
Wow!
> Can you possibly do ls, etc. all through curl's interface, or am I out of
> luck here?
Yes you can:
curl -ftp-ssl ftp://machine.site.com/path/
If you end the URL with a slash, curl will assume that the right-most part is
a dir and use LIST in there. If you omit the slash, it'll consider it as a
file and attempt to RETR it.
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2005-02-01