我正在使用 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);
}
}