cURL / Mailing Lists / curl-library / Single Mail

curl-library

How to separate two different response

From: smruti kumari <smrutikumari777_at_gmail.com>
Date: Tue, 17 May 2016 12:50:02 +0530

Hi Daniel,

I am sending a http request and adding josn data in the body.Similary
server also responding with json body.The response packet we will recv in
the write callback.But my query is

How can we come to know that how much bytes I need to receive for the
particualr response ?

The problem will aries when two different response(one after anther) will
come for a request.
How can we separate these two response ?
How much bytes for 1st response and how much bytes for 2nd response ?

Thanks,
Smruti

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