cURL / Mailing Lists / curl-library / Single Mail

curl-library

I want to delete file from sftp bu libcurl, but...

From: ΑυΣ’Ξ° <506017026_at_qq.com>
Date: Wed, 11 Dec 2013 13:19:01 +0800

I want to delete file from sftp
this is my code :
curl_global_init(CURL_GLOBAL_DEFAULT);
        curl = curl_easy_init();
        curl_easy_setopt(curl, CURLOPT_URL, "sftp://admin:admin@132.40.130.35:22/ogsapp/tmp/hebh/sftptest/");

headerlist = curl_slist_append(headerlist, "rm abc.c");
result = curl_easy_setopt(curl, CURLOPT_POSTQUOTE, headerlist);
        printf("%d\n",result);
        result = curl_easy_perform(curl);
        printf("%d\n",result);







but the abc.c is still exist and the curl_code is 21 .

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-12-11