On Wed, 21 Apr 2010, mini thomas wrote:

I am using sftp delete command. The curl binary always gives the error "curl: (21) Syntax error in SFTP command. Supply parameter(s)!".   Please find the comamnd and curl version details below.

You need to check the man page for the -Q option and the SFTP-specific parts in there. This is actually documented.

D:\lib>curl -u usr:mypassword  "sftp://192.168.2.49/m.obj"; -Q \"DELE sftp://192.168.2.49/m.obj\"  -v

The command is called 'rm' in SFTP lingo. And the file name should not be a full URL, but a local file name on the server you connected to.

--

 / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to