応答を受け取るためにcurlppを使用しています。このcurlppサイトの例http://curlpp.org/index.php/examples/64-example-14を参照しています。しかし、応答が保存されている場所がわからないため、さらに目的に使用できます。コードは、リクエストのステータスの整数値のみを示しています。私もグーグルを通過しましたが、それを理解することができません。
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);
}
}