curl-users
Re: How to delete files with Quote command?
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 22 Jan 2001 15:44:17 +0100 (MET)
Date: Mon, 22 Jan 2001 15:44:17 +0100 (MET)
On Mon, 22 Jan 2001, JSZvD wrote:
> I've got a question about the --quote command in relation to ftp. When
> using it in the following line, it doesn't work:
> curl --proxy proxyserver:port --proxy-user username:password -O --verbose
> ftp://username:password@server-address/filename -Q "-delete filename"
>
> I'm runnin this command under Windows NT (4.0). When I use single quotes,
> the operation will be aborted. What am I doing wrong?
The --quote command must specify a full and detailed FTP command as described
in RFC959 or similar. There's no FTP command named 'delete'. To delete a file
from a FTP server you must use the DELE command and thus it should probably
be similar to:
-Q "-DELE filename"
-- Daniel Stenberg -- curl project maintainer -- http://curl.haxx.se/Received on 2001-01-22