bdo*_*lan 28
Curl ++:是一个选项,特别是如果你想要更多的C++风格的东西.
cpp-netlib:非常好用且易于使用,可在ubuntu上找到
sudo apt-get install libcppnetlib-dev
Run Code Online (Sandbox Code Playgroud)
例:
using namespace boost::network;
using namespace boost::network::http;
client::request request_("http://127.0.0.1:8000/");
request_ << header("Connection", "close");
client client_;
client::response response_ = client_.get(request_);
std::string body_ = body(response_);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
68754 次 |
| 最近记录: |