cURL / Mailing Lists / curl-library / Single Mail

curl-library

Problem with SFTP ( using CURLOPT_RANGE)

From: ÀÌÁ¤¿ì <lunar2296_at_gmail.com>
Date: Thu, 27 Dec 2007 15:21:19 +0900

 HI!
 I want to download from designated point to another doing SFTP.

 curl_easy_setopt( curl, CURLOPT_URL,
"sftp://root:12345@192.168.33.146<ftp://root:12345@192.168.33.146>
/est");
 curl_easy_setopt( curl, CURLOPT_SSH_AUTH_TYPES, CURLSSH_AUTH_ANY);
 curl_easy_setopt(curl, CURLOPT_RANGE, "20-300");
 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, my_fwrite);
 curl_easy_setopt(curl, CURLOPT_WRITEDATA, &ftpfile);
 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
 res = curl_easy_perform(curl);

When I tried it in the same way in FTP, it came out with proper result. But

when I do it in SFTP , I have failed.

I think CURLOPT_RANGE has ignored.

Regards
JW
Received on 2007-12-27