cURL / Mailing Lists / curl-library / Single Mail


question of curl_easy_getinfo on sftp

From: ΑυΣ’Ξ° <>
Date: Thu, 16 Jan 2014 16:11:59 +0800

I want to get size of a file with libcurl on sftp .
so I use the curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &filesize) and get size in filesize .
but it always print the content of the file .

Then I set the option of nobody like this curl_easy_setopt(curl, CURLOPT_NOBODY, 1L)
it doesn't print the file ,but I can't get the size!!!


List admin:
Received on 2014-01-16