curl-library
RE: FTP getting empty file.
Date: Tue, 17 Aug 2004 16:51:58 +0300
I made the changes that you can see in the attached file.
It is working for FTP in my test. I made the minimum changes as
possible.
I hope it is correct also for other protocols.
-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Daniel Stenberg
Sent: Monday, August 16, 2004 11:14
To: libcurl development
Subject: Re: FTP getting empty file.
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
The information contained in this message is proprietary of Amdocs,
protected from disclosure, and may be privileged.
The information is intended to be conveyed only to the designated recipient(s)
of the message. If the reader of this message is not the intended recipient,
you are hereby notified that any dissemination, use, distribution or copying of
this communication is strictly prohibited and may be unlawful.
If you have received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.
Thank you.
- text/plain attachment: diff.txt