cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: FTP getting empty file.

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 16 Aug 2004 10:13:42 +0200 (CEST)

On Sun, 15 Aug 2004, Alexander Krasnostavsky wrote:

>
> When getting an empty file while using CURLOPT_WRITEFUNCTION option, there
> is no call of write function because it is stopped in line 293 in
> lib/transfer.c:

...

> In this case the empty file does not created in client host. When 0 bytes
> received, the case should distinguish between the first time and others, so
> for the first time the write function should be called with 0 bytes just to
> create an empty file.
>
> What do you think?

Yes, this problem is mention in docs/KNOW_BUGS and yes, I would like to see
this fixed.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-08-16