cURL / Mailing Lists / curl-library / Single Mail


Re: sftp quote command issue

From: Daniel Stenberg <>
Date: Wed, 21 Apr 2010 17:35:16 +0200 (CEST)

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://" -Q \"DELE
> sftp://\"  -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.


List admin:
Received on 2010-04-21