cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: GET reply problem

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 15 Jun 2005 05:24:04 -0700

On Wed, Jun 15, 2005 at 12:53:43PM +0100, Pedro Neves wrote:
> Let me try to explain it better: If I compare the text file produced as
> a reply to the GET operation with the packet using ethereal, I can see
> in ethereal that the packet has been correctly sent (is completed), but
> in the text file it stops in the middle of the packet. As a resullt, my
> program crashes.

Two things to look at: are you closing your file properly when the transfer
is complete? And are you writing every data block to the file from your
write callback function, regardless of the site of the data block?

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2005-06-15