cURL / Mailing Lists / curl-library / Single Mail

curl-library

question of curl_easy_getinfo on sftp

From: ΑυΣ’Ξ° <506017026_at_qq.com>
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!!!


Thanks.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-01-16