c++ requests网络请求库

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

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

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

#include <iostream>
#include <string>
#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;
}
    原文作者:Cosmop01itan
    原文地址: https://blog.csdn.net/CosmopolitanMe/article/details/105652648
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞