Implementing the HTTP client application
HTTP clients constitute important class of distributed software and are represented by many applications. Web browsers are prominent representatives of this class. They use HTTP protocols to request web pages from web servers. However, today HTTP protocol is used not only in the web. Many distributed applications use this protocol to exchange custom data of any kind. Often, when designing a distributed application, choosing HTTP as a communication protocol is a much better idea than developing custom one.
In this recipe, we will consider an implementation of HTTP client using Boost.Asio that satisfies the following basic requirements:
- Supports the HTTP
GET
request method - Executes requests asynchronously
- Supports ...
Get Boost.Asio C++ Network Programming Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.