在C++中HTTP库速查表

分享到:
不幸的是,标准C+ +库没有提供了与HTTP协议相关的工具。以下是一些C++ HTTP库,可以让我们运行REST服务,解析网页或写一个简单的机器人或网络爬虫。
  • WinInet
  • WinHttp
  • Casablanca
  • Qt
  • POCO
  • wxWidgets
  • Boost.Asio
  • libcurl
  • neon
  • .NET (С++/CLI)
  • IXMLHTTPRequest
  • HappyHttp
  • cpp-netlib

WinInet

Website: http://msdn.microsoft.com/en-us/library/windows/desktop/aa385483(v=vs.85).aspx
Platform: Windows 95 and later
Example

WinHttp

Website: http://msdn.microsoft.com/en-us/library/windows/desktop/aa382925(v=vs.85).aspx
Platform: Windows 2000 and later
Example

Casablanca

Website: https://casablanca.codeplex.com
Platform: all
Example

Qt

Website: http://qt-project.org
Platform: all
Example use for Qt 4.x (already outdated)
Example use for Qt 5.x

POCO

Website: http://pocoproject.org
Platform: all
Example

wxWidgets

Website: http://www.wxwidgets.org
Platform: all
Example

Boost.Asio

Website: http://www.boost.org/doc/libs/1_55_0/doc/html/boost_asio.html
Platform: all
Example

libcurl

Website: http://curl.haxx.se/libcurl
Platform: all
Example

neon

Website: http://www.webdav.org/neon
Platform: all
Example

.NET

Website: http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx
Platform: Windows XP and later
Example

IXMLHTTPRequest

Website: http://msdn.microsoft.com/en-us/library/ms759148(v=vs.85).aspx
Platform: Windows XP and later
Example

HappyHttp

Website: http://scumways.com/happyhttp/happyhttp.html
Platform: all
Example

cpp-netlib

Website: http://cpp-netlib.org
Platform: all
Example
昵    称:
验证码:

相关文档: