cURL / Mailing Lists / curl-library / Single Mail


Re: write callback issues (was Re: A new problem)

From: Linus Nielsen Feltzing <>
Date: Wed, 09 Apr 2008 07:41:00 +0200

Prasad J Pandit wrote:
> No, I'm not simulating any http response. All I send back is say:
> "hello, world!"; But the problem is not there, it's that my function
> recv_data(..) gets called even before I type "hello, world!" and hit
> enter/return on the server.

That's really weird!

I really suggest you try to find out what the bogus response contains.
Either set a breakpoint in the callback and inspect the buffer, or use
sprintf() to convert the buffer data to hex-ascii before sending it to

Received on 2008-04-09