Just like it is explained in the QNetworkAccessManager documentation: http://doc.qt.io/qt-5/qnetworkaccessmanager.html
If you have specifics that you don't understand feel free to ask.