curl-users
Re: How to download and rename/delete a file from a remote SSL ftp server by curl?
From: Liang Cai <lcai_at_primustel.ca>
Date: Thu, 13 Jan 2005 19:15:21 +0000 (UTC)
Date: Thu, 13 Jan 2005 19:15:21 +0000 (UTC)
Daniel Stenberg <daniel-curl <at> haxx.se> writes:
>
> On Thu, 13 Jan 2005, Liang Cai wrote:
>
> > Can someone please tell me how to use curl (on HP unix) to download and
> > rename/delete a file from a remote SSL ftp server ??
>
> Something like this (this should be written in one single line):
>
> curl -Q "-RNFR fromfile" -Q "-RNTO tofile" -Q "-DELE rmfile"
> ftps://ftps-site.com/file/to/transfer
>
> If you want the more recent spec-following approach, you use a ftp:// URL and
> the --ftp-ssl option instead of the ftps:// URL like above.
>
Thank you very much, it works well...
But how can I force a ASCII transfer mode? I tried "-B" and even ";type=A", and
they didn't work.
Received on 2005-01-13