What C ++ HTTP platforms are available?

What C ++ HTTP platforms exist that will help in adding HTTP / SOAP application support to the application?

+2
source share
4 answers
+2
source

You can also see:

http://pocoproject.org/

+6
source

NEW! : , HTTP, WebSocket: https://github.com/vinniefalco/Beast , :

#include <beast/http.hpp>
#include <boost/asio.hpp>
#include <iostream>
#include <string>

int main()
{
    // Normal boost::asio setup
    std::string const host = "boost.org";
    boost::asio::io_service ios;
    boost::asio::ip::tcp::resolver r(ios);
    boost::asio::ip::tcp::socket sock(ios);
    boost::asio::connect(sock,
        r.resolve(boost::asio::ip::tcp::resolver::query{host, "http"}));

    using namespace beast::http;

    // Send HTTP request using beast
    request<empty_body> req({method_t::http_get, "/", 11});
    req.headers.replace("Host", host + ":" + std::to_string(sock.remote_endpoint().port()));
    req.headers.replace("User-Agent", "Beast");
    write(sock, req);

    // Receive and print HTTP response using beast
    beast::streambuf sb;
    response<streambuf_body> resp;
    read(sock, sb, resp);
    std::cout << resp;
}

​​: http://vinniefalco.imtqy.com/beast/index.html

+2

Yield , IIAP SOAP.

+1

Source: https://habr.com/ru/post/1712639/


All Articles