cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: FTP: size of remote file

From: Christian Vogt <christian.vogt_at_loewe-komp.de>
Date: Thu, 13 Sep 2007 11:33:02 +0200

on 9/13/2007 11:09 AM, ying_at_lw-works.com wrote:
> Hi,
> Can anyone tell me how to retrieve the size of the remote FTP file before
> download it?

Hi,

see the "FTP & NOBODY" sub-part of my "Abort FTP downloads" thread. I
had a similar problem and solved it by using the NOBODY option and a
small patch that sets the content length even for FTP downloads.

http://curl.haxx.se/mail/lib-2007-08/0308.html

Hope this helps a bit
Christian
Received on 2007-09-13