cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: FTP SIZE command?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 7 Aug 2006 12:59:11 +0200 (CEST)

On Mon, 7 Aug 2006, Armel Asselin wrote:

> it seems that each download in FTP is preceded by a SIZE command and TYPE I
> command. Is there a way to disable it? (I already know the size of the file
> in fact, and the type rarely changes). I'm trying to reduce to the strict
> minimum the number of round-trip involved by a FTP get command.

No, there's no such way. You may know the size already but libcurl doesn't and
it needs to know the size to properly detect transfers that are cut off
prematurely.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-08-07