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:[email protected]: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

Reply via email to