cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: FTP byte range

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 13 Sep 2007 15:15:40 +0200 (CEST)

On Wed, 12 Sep 2007, ying_at_lw-works.com wrote:

(please don't top-post: http://curl.haxx.se/mail/etiquette.html#top-post)

> Now I have another question. How can I get the size of the remote file?

Get the file with CURLOPT_NOBODY and extract the size, or just get the ftp
headers to a callback and parse the 213 response (or the RETR response). Or
read it within the progress callback...

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-09-13