cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Clarification on CURLOPT_WRITEFUNCTION behaviour

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Fri, 1 Oct 2010 00:56:08 -0500

On Thu, Sep 30, 2010 at 11:15 PM, Chris Kruger wrote:

> I would like to know more clearly under what circumstances it's
> possible for libcurl's write function to be called more than
> once during a reply.

The write function gets called as many times as needed to complete
the download. Are you checking the number of bytes you receive on
each call? Are you returning that value from the callback?

> buggy behaviour was being exhibited in my application

That really doesn't tell us much.

 - Jeff
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-10-01