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 <http://www.php.net/pos> =
msgs.begin();
  pos <http://www.php.net/pos> != msgs.end <http://www.php.net/end>();
  pos <http://www.php.net/pos>++) {
      if(pos->second.msg == CURLMSG_DONE) {

  /* Find out which handle this message is about */
  if(pos->first == &request1) {
    printf <http://www.php.net/printf>("First request completed with status
%d\n", pos->second.code);
  }
  else if(pos->first == &request2) {
    printf <http://www.php.net/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.

Reply via email to