cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re:Re: How to delete file from sftp server by libcurl

From: »ÆÐÄâù <e_balloon_at_163.com>
Date: Tue, 25 Sep 2012 16:31:24 +0800 (CST)

>CURLcode nRet = curl_easy_perform(curl);

>What does it return? What does the CURLOPT_VERBOSE mode output show?This interface returns CURLE_OK;And,this is the log when CURLOPT_VERBOSE mode:* About to connect() to 9.125.90.63 port 69 (#0)
* Trying 9.125.90.63... * connected
* Connected to 9.125.90.63 (9.125.90.63) port 69 (#0)
* SSH authentication methods available: password,publickey
* Initialized password authentication
* Authentication complete
drw-rw-rw 1 root root 0 Sep 25 22:43 .
drw-rw-rw 1 root root 0 Sep 25 22:43 ..
-rw-rw-rw 1 root root 530 Sep 26 00:28 1.key
-rw-rw-rw 1 root root 530 Sep 26 00:27 2.key
drw-rw-rw 1 root root 0 Sep 20 00:41 79G
-rw-rw-rw 1 root root 782456 Apr 25 20:17 freeSSHd_SFTP.exe
-rw-rw-rw 1 root root 140 Sep 26 00:28 reportfile.temp
* Connection #0 to host 9.125.90.63 left intact
* Closing connection #0Everything looks fine, except they list the directory other than delete the file.By the way, the libcurl version is 7.21.3, libssh2 version 1.2.8, openssl version 0.9.8kThanks.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-09-25