cURL / Mailing Lists / curl-users / Single Mail

curl-users

Unable to delete a file on ftp server

From: Jeremiah Foster <jeremiah_at_easywebsite.se>
Date: Thu, 02 Feb 2006 17:36:11 +0100

Greetings cURL afficianados!

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
* About to connect() to janus.cnetdata.com port 21
* Trying 216.239.127.168... connected
* Connected to janus.cnetdata.com (216.239.127.168) port 21
< 220 Microsoft FTP Service
> USER user
< 331 Password required for user.
> PASS password
< 230 User user logged in.
> PWD
< 257 "/" is current directory.
* Entry path is '/'
> EPSV
* Connect data stream passively
< 500 'EPSV': command not understood
* disabling EPSV usage
> PASV
< 227 Entering Passive Mode (216,239,127,168,159,12).
* Trying 216.239.127.168... connected
* Connecting to 216.239.127.168 (216.239.127.168) port 40716
> TYPE A
< 200 Type set to A.
> del
< 500 'DEL': command not understood
* RETR response: 500
* Connection #0 to host janus.cnetdata.com left intact
curl: (19) RETR response: 500

Am I doing something wrong here? I have connected and deleted manually
to the machine but cannot create a script with cURL. I have seen file
deletion done with something called ncftpget so I figure cURL has it as
well somewhere.

Jeremiah
Received on 2006-02-02