cURL / Mailing Lists / curl-library / Single Mail


Re: Issues on callback write_data

From: Daniel Stenberg <>
Date: Mon, 26 Mar 2007 00:27:17 +0200 (CEST)

On Sun, 25 Mar 2007, Gustavo Elias Siqueira wrote:

> But the issue still remains...
> The second callback have a bigger size, but no data avaiable.

Sorry, can you please elborate on what this means. What's bigger and if the
size is bigger, what do you mean with "no data available" ?

> I put some breakpoints right after perform line, and both chunk.memory and
> *mem just got a parcial data. The write_data function is called by libcurl 2
> times during the perform, but the data that I showed to you, I got at the
> fist callback...nothing in the second one.

I think you're wrong. The callback isn't even ever called if there's no data
provided to it.

  Commercial curl and libcurl Technical Support:
Received on 2007-03-26