Skip to main content

C++ with Libcurl

开源 C++库

http://zh.cppreference.com/w/cpp/links/libs

https://github.com/mrtazz/restclient-cpp

https://github.com/Microsoft/cpprestsdk

https://github.com/jpbarrette/curlpp

libcurl


001.cpp

#include <iostream>

int main(int argc, const char * argv[]) {
// insert code here...
std::cout << "Hello, World!\n";
return 0;
}
g++ 001.cpp -o 001

http://192.168.56.101:8080/wm/core/controller/switches/json

cpprestsdk

0x01 Install

brew install cpprestsdk

libcurl

https://blog.csdn.net/cjf_wei/article/details/79118415

https://blog.csdn.net/cjf_wei/article/details/79185310

在新版中把 curl/types.h 合并到了 curl/curl.h 中