How i can send an HttpRequest from C++
I'm using DataServices and OData protocol. I need to generate HTTP Get, Post, Delete, and Update from a C++ application. How I can do t开发者_StackOverflow中文版his? What is the easiest way?
Try cURL. check out this SO post. Perform a simple HTTP request using C++ / Boost via a proxy?
Boost.Asio. There's an example of a simple HTTP client (with a GET request).
The POCO library is another alternative to cURL
You can use MS stuff: Wininet or WinHTTP.
Adding to this old post.
Beast is a cross-platform, header-only, modern C++11 library built on Boost.Asio that provides implementations of the HTTP and WebSocket protocols.
The project is under evaluation to be included in Boost, so it may be worth looking at it.
精彩评论