cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Need help to prepare http buffer using curl

From: smruti kumari <smrutikumari777_at_gmail.com>
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
?

Thanks,
Smruti

On Tue, May 10, 2016 at 5:40 PM, Daniel Stenberg <daniel_at_haxx.se> 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:
>
> https://curl.haxx.se/libcurl/c/libcurl-multi.html
>
> 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
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: https://cool.haxx.se/list/listinfo/curl-library
> Etiquette: https://curl.haxx.se/mail/etiquette.html

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-05-10