Look at example 22 (Using options::Url as stream input). On Sun, Jun 19, 2011 at 2:34 AM, Rajbir Kaur <[email protected]> wrote: > Hi, > 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. > Thanks in advance > > > ---------- Forwarded message ---------- > From: Rajbir Kaur <[email protected]> > Date: Fri, Jun 17, 2011 at 2:54 PM > Subject: to get the response received > To: [email protected] > > > 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); > } > } > > -- > You received this message because you are subscribed to the Google Groups > "curlpp" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/curlpp?hl=en. >
-- You received this message because you are subscribed to the Google Groups "curlpp" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/curlpp?hl=en.
