cURL / Mailing Lists / curl-library / Single Mail


Re: curl_multi_perform - how to know if data is entirely sent.

From: swathi upadhyaya <>
Date: Fri, 20 May 2011 12:28:49 +0530

yes it works thank you. But will DEBUGFUNCTION slow down the performance of
the application?
Also i tried using

curl_easy_getinfo(curl, CURLINFO_SIZE_UPLOAD, &sentbytes);

inside while loop and then compare the value with actual bytes to be sent .
This also seems to work.

Which one would be better approach


On Fri, May 20, 2011 at 12:16 PM, Daniel Stenberg <> wrote:

> On Fri, 20 May 2011, swathi upadhyaya wrote:
> I just want to make sure that data is entirely sent on socket before
>> comming out of send function,. but donot want to wait for HTTP response. Is
>> there any way to acheive this?
> The only way I can think of right now is to use the DEBUGFUNCTION and count
> the amount of data sent and when that counter hits the amount you know it
> should reach, then it is done.
> --
> /
> -------------------------------------------------------------------
> List admin:
> Etiquette:

List admin:
Received on 2011-05-20