Poco库使用

1. 在引用的Poco的工程中,不能添加Poco的头文件路径 如: ../../include/Poco, 直接添加 ../../include/就可以了

    使用头文件的时候 #include "Poco/ThreadPool.h"

 

2.http获取服务端返回的header信息

HTTPClientSession &httpClientSession;

istream& rs = httpClientSession.receiveResponse(response);

if (reponse.has("signature"))
{
        string strSign = reponse.get("signature");
}

 

3.openssl加解密的时候,已经将openssl的头文件拷贝到VS工程路径下,但是遇到 #include 这样的头文件无法找到,

可以在VS工程中添加  .\

 

4.HTTPServerRequest获取get的参数

HTMLForm form(request, request.stream());
NameValueCollection::ConstIterator it;
NameValueCollection::ConstIterator end;
if (!form.empty())
{

it = form.begin();
end = form.end();
for (; it != end; ++it)
{
cout << it->first << ": " << it->second << endl;
}

}

你可能感兴趣的:(C++)