Please help me. Its urgent. I want to know where the response that is received by curlpp is stored in curlpp::Multi::Msg. I have gone through curlpp examples and google also, but not able to find.
Or I have to use the callback function only.
---------- Forwarded message ----------
From:
Rajbir Kaur <rajb...@gmail.com>
Date: Fri, Jun 17, 2011 at 2:54 PM
Subject: to get the response received
To:
cur...@googlegroups.com
Hi,
I am using curlpp in my project. I have gone through the examples given on the.
Now I am taking the reference of example 14.
My Requirement: to save the data received from the remote url and use it for further purpose.
Problem is I am not getting where the received data is stored in the CURLMsg structure:
curlpp::
Multi::
Msgs msgs =
requests.info();
for(curlpp::
Multi::
Msgs::
iterator pos = msgs.begin
();
pos != msgs.
end();
pos++
) { if(pos->
second.msg == CURLMSG_DONE
) {
/* Find out which handle this message is about */ if(pos->
first == &request1
) {
printf("First request completed with status %d\n", pos->
second.code
);
} else if(pos->
first == &request2
) {
printf("Second request completed with status %d\n", pos->
second.code
);
} }