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 19:23:12 +0200 (CEST)

On Mon, 7 Aug 2006, Armel Asselin wrote:

>> 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.

> is it imagineable to add an option such as "CUROPT_EXPECT_SIZE_LARGE"? which
> would prevent this request?

It would be imagineable to have a way to disable certain parts of the FTP
command/response, yes. But I don't see why it would be called
CUROPT_EXPECT_SIZE_LARGE. What does a large size have to do with this?

> I noted as well that curl redo all the CWD stuff for each file even if the
> previously downloaded file was in the same directory (idem for TYPE A/I),

No it doesn't. At least not recent versions if the connection was kept alive.

The type it will resend, yes.

> could it be possible/wishable to memorize in the curl FTP context that the
> last download was in same path and/or same type? and redo the minimal stuff?

Yes it would.

> I want to make large number of small files downloads, these additional
> roundtrips (wrt to a pure FTP lib) may degrade dramatically the performances.

Yeps, they might. I would gladly accept patches that avoid the extra TYPE.

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