cURL / Mailing Lists / curl-library / Single Mail


Re: FTP: size of remote file

From: Christian Vogt <>
Date: Thu, 13 Sep 2007 11:33:02 +0200

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


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.

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