cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: 回复: Re: patch for the case that curl can't transfer zero-size file by file://download

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 12 Jun 2007 10:51:41 +0200 (CEST)

On Tue, 5 Jun 2007, 峰 涂 wrote:

> hi. Daniel, Someone pointed out that curl can't transfer zero-size file by
> file://url. So I offerred this patch for it.

I fully understand that, but I need to consider the library as a whole and to
me it makes a lot of sense that all the supported protocols behave the same
way in regard to zero byte files. Thus, I see little use in having support for
this way to do zero byte file:// transfers, when there's no way to do zero
byte transfers over any other protocol.

So, unless someone comes up with a good argument that speaks against what I'm
saying, I'm gonna reject this patch.

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