cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Need help to prepare http buffer using curl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 10 May 2016 14:10:58 +0200 (CEST)

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
Received on 2016-05-10