SFTP: stat remote file also when CURLOPT_NOBODY is 1
authorFabian Frank <fabian@pagefault.de>
Mon, 20 Jan 2014 21:14:04 +0000 (13:14 -0800)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 20 Jan 2014 21:57:55 +0000 (22:57 +0100)
commit852a018e78c4976e3cf07212e8022546edb2c120
tree9f0533ac8df3d2cfb4bfaa7f9d023a478265d04c
parent82de54dd38938b647dd3bc14a0150e2a7d3a1b94
SFTP: stat remote file also when CURLOPT_NOBODY is 1

Make it possible to call
curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &filesize)
and related functions on remote sftp:// files, without downloading them.

Reported-by: Yingwei Liu
Bug: http://curl.haxx.se/mail/lib-2014-01/0139.html
lib/ssh.c