curl-library
Re: Need help regarding multi_socket(i.e. multi) interface
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 12 May 2016 00:57:32 +0200 (CEST)
Date: Thu, 12 May 2016 00:57:32 +0200 (CEST)
On Wed, 11 May 2016, smruti kumari wrote:
> By calling the curl_multi_socket_action() API, we can send/recv the data.
> But The application needs to collect the received data from the write
> function callback.Am I right ?
Yes, that is correct.
> 1. How can we come to know that the complete packet sent/received by the
> curl during data transfer ?
You get told when the transfer completes.
curl_multi_info_read() returns a struct with info about it then.
But curl_multi_socket_action() also returns the number of "running" handles so
you can see when that number decreases.
> 2. How can we add the http body using curl before sending the data ?
CURLOPT_POSTFIELDS perhaps?
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2016-05-12