What C++ library should I use to implement a HTTP

2019-01-16 09:28发布

I'm looking for a C++ library that implements or enables the implementation of a HTTP client. It should handle cookies as well.

What would you propose?

标签: c++ http client
8条回答
相关推荐>>
2楼-- · 2019-01-16 09:34

Take a look at Poco Libraries.

I started using them as they are portable and it's a joy to work with. Simple and clean - though I haven't dived in anything fancy for the moment.

查看更多
叛逆
3楼-- · 2019-01-16 09:37

All alternative library are available here, if you need complex http APIs, try curl, if just wanna get a file, try http-tiny

http://curl.haxx.se/libcurl/competitors.html

查看更多
4楼-- · 2019-01-16 09:43

You can try WinInet

http://msdn.microsoft.com/en-us/library/aa385331(VS.85).aspx

In contrast to WinHTTP, it's more client-side oriented.

查看更多
对你真心纯属浪费
5楼-- · 2019-01-16 09:45

C++ (STL) does not have a HTTP or network library by default, you will have to do with something else.

libcurl should do what you want. cURL++ is the same libcurl wrapped in a shiny C++ wrapper.

查看更多
别忘想泡老子
6楼-- · 2019-01-16 09:48
Viruses.
7楼-- · 2019-01-16 09:48

If it's for windows, take a look at Windows HTTP Services (WinHTTP)

http://msdn.microsoft.com/en-us/library/aa384273(VS.85).aspx

Microsoft Windows HTTP Services (WinHTTP) provides developers with an HTTP client application programming interface (API) to send requests through the HTTP protocol to other HTTP servers.

WinHTTP offers both a C/C++ application programming interface (API) and a Component Object Model (COM) automation component suitable for use in Active Server Pages (ASP) based applications.

For Cookies http://msdn.microsoft.com/en-us/library/aa383261(VS.85).aspx

查看更多
登录 后发表回答