看了 libcurl,太麻烦了,有没有封装好的,没有太多依赖的库。
怀念 python 中的 urllibx 。
似乎libcurl是比较完善的选择,什么场景一定得C++来搞呢?
curl - too heavyweight
poco - too heavyweight
neon - GPL
qlibc - relies on POSIX libraries
cpp-netlib - relies on Boost libraries
serf - relies on the Apache Portable Runtime library
urdl - relies on Boost libraries
HTTP Client C API - promising but requires a C++ wrapper
找到几个,lz 有需求就自己搜搜,但这些目测使用方便程度还是没法和 Python 比
poco 库