cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: quote option in curl ftp

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 6 Oct 2005 10:36:29 -0700

On Thu, Oct 06, 2005 at 07:59:25PM +0200, Philippe Baudry wrote:
> hi,
>
> i want just to delete a file after a ftp transfert using curl. i use
> the Quote option, with the following syntax.
>
> (i use the - caracter to specify the delete is after the file transfert
> as explained in the doc, followed by the ftp delete command.)
>
> $ curl -u ismadm:om4test --upload-file /tmp/toto.txt --url
> ftp://casper.frcl.bull.fr:21 -Q "-delete toto.txt"
>
>
> curl responds message
>
> curl: (21) QUOT string not accepted: delete toto.txt

To quote the curl man page for the -Q option:

  You must send syntactically correct FTP commands as RFC959 defines.

If you read RFC 959 you will see that the ftp delete command is not "-delete"
but "DELE"

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2005-10-06