cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Unable to delete a file on ftp server

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 2 Feb 2006 10:24:24 -0800

On Thu, Feb 02, 2006 at 05:36:11PM +0100, Jeremiah Foster wrote:
> I am working with some files from Cnet and they require me to delete a
> file on their servers so that they know to update files. I do not want
> to do this manually, but cURL seems to not be able to emit the right
> command to MS ftp server.
>
> Here is the output;
>
> $ curl -v -u user:password ftp://janus.cnetdata.com -X del
> ack/dataout.txt
...
> > del
> < 500 'DEL': command not understood
> * RETR response: 500

'DEL' isn't understood because that's not the command you want; the command
is 'DELE', and want to send it using -Q, not -X. You also need to enclose
the whole -Q argument in double quotes on the command line or else curl
thinks you're trying to transfer another file.

>>> Dan

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