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 09:39:28 -0700

On Wed, Jun 15, 2005 at 03:28:27PM +0100, Pedro Neves wrote:
> I am not sure, but probably not. I should call the fclose(), rigth?
> Anyway, I send you the functions that I am calling:

Right, if you're doing an fopen (which you are). You'll probably want to
call it after curl_easy_perform().

> >And are you writing every data block to the file from your
> >write callback function, regardless of the site of the data block?
> >
> >
> Sorry, but I didnt understood the question. Are you asking me if I am
> writing to file everytime I call the URL?

This assumed that you might be doing doing something fishy in your write
callback, but you're not. It sure sounds like it's a missing close in your
case.

N.B. Future questions of this sort are better asked in the curl-library list
instead of this one.

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