cURL / Mailing Lists / curl-library / Single Mail


Re: Need help to prepare http buffer using curl

From: smruti kumari <>
Date: Tue, 10 May 2016 18:57:44 +0530

Hi Daniel,

Thanks Daniel for you quick response.
I am going to use for a high performance load testing.As per you
information curl_multi_perform() API will return once all easy handle
transfer the data.So It will block the operation to complete the transfer
for all easy handle.

In my project we need, if first time the data transfer is not complete then
we will call next time based on the notification of data availability. My
application will create huge no of child process and each child process
will invoke curl_multi_perform().So I need more clarification regarding
below API.

Is curl_multi_perform() API working as a non-blocking mode or blocking mode


On Tue, May 10, 2016 at 5:40 PM, Daniel Stenberg <> wrote:

> On Tue, 10 May 2016, smruti kumari wrote:
> I wanted to use the curl in non-blocking mode. So I need to use
>> curl_easy_send() and curl_easy_recv() API to send and receive the data
>> respectively.
> That's the wrong conclusion. You need to use the multi interface:
> Can we get the buffer which contains http header after setting the option
>> using API curl_easy_setopt() ?
> 1. There's no HTTP header created after curl_easy_setopt() was used
> 2. libcurl doesn't expose that kind of internals
> --
> /
> -------------------------------------------------------------------
> List admin:
> Etiquette:

List admin:
Received on 2016-05-10