How can I send HttpRequest from C ++

I am using DataServices and OData protocol. I need to generate HTTP Get, Post, Delete and Update from a C ++ application. How can i do this? What is the easiest way?

+2


a source to share


5 answers


Try cURL . check this post. Making a simple HTTP request using C ++ / Boost through a proxy?



+2


a source


The POCO library is another alternative to cURL



+2


a source


Boost.Asio . There's an example of a simple HTTP client (with a GET request).

+2


a source


You can use MS stuff: Wininet or WinHTTP .

+1


a source


Adding to this old post.

Beast is a cross-platform, modern C ++ 11 header-based library built on Boost.Asio that provides implementation of the HTTP and WebSocket protocols.
The project is in the evaluation stage to be included in Boost, so it might be worth looking at.

+1


a source







All Articles