On Wed, Dec 11, 2013 at 12:27:43PM +0100, Gisle Vanem wrote:
> "刘英伟" <[email protected]> wrote:
> 
> >headerlist = curl_slist_append(headerlist, "rm abc.c");
> >result = curl_easy_setopt(curl, CURLOPT_POSTQUOTE, headerlist);
> 
> Maybe the command should be "dele abc.c" under this SFTP-server.

No, the sftp commands are interpreted by libcurl itself and transformed into
the binary sftp protocol form, so it's always "rm". My guess would be that
the path is incorrect (the default isn't where the file is), or a permissions
problem.

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

Reply via email to