Requesting information to an HTTP server is a common task. Here again, the Qt folks prepared some useful classes to make it easy. To achieve this, we will rely on three classes:
- QNetworkAccessManager: This class allows your application to send requests and receive replies
- QNetworkRequest: This class holds the request to be sent with all the information (headers, URL, data, and so on)
- QNetworkReply: This class contains the result of a QNetworkRequest class with the headers and the data
The QNetworkAccessManager class is the pivot point of the whole Qt HTTP API. It is built around a single QNetworkAccessManager object that holds the configuration of the client, proxy settings, cache information, and much more. ...