c++ requests网络请求库

项目地址:
https://github.com/lxwAsm/requests

演示视频:
https://www.bilibili.com/video/bv1gV411Z7fT

nuget安装此库(推荐),只需一行命令:https://www.nuget.org/packages/CppRequests/0.0.5
基本使用:

#include 
#include 
#include "requests.h"
using namespace std;
using namespace requests;
int main(int argc)
{
    Response resp = Get("https://baidu.com");
    cout << resp.status << endl;
    cout << resp.GetText() << endl;
    return 0;
}

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