curl-library
Re: Ftp file size
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 10 Mar 2003 17:48:42 +0100 (CET)
Date: Mon, 10 Mar 2003 17:48:42 +0100 (CET)
On Sun, 9 Mar 2003, Igor Magazinik wrote:
> How can I retrieve file size prior to starting FTP download?
There's no easy way to do this.
You can set a DEBUGFUNCTION and intercept the commands and their responses
and thus attempt to figure it out.
Otherwise, you'll have to wait for the first write callback in the transfer,
as that will most likely include the file size (although not necessary).
-- Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sfReceived on 2003-03-10