Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
HTTP request POST in QT application QT 5.3.2
trex last edited by
I want to send the following oauth HTTP POST request using qt netwok apis.
POST /accounts/o8/oauth2/token HTTP/1.1
Can anybody help me out how to use qt api classes QNetworkRequest,QNetworkAccessManager,QNetworkRepl y for the above HTTP POST request.
I an using raspberry pi 3 QT creator 3.2.1 based on QT 5.3.2.
You do realise you have posted your oauth secret here publicly?
Are you forced to use such an old Qt version? If no, then please consider upgrading to Qt 5.8 or 5.9, where you can use the convenience QtNetworkAuth module.
If yes, then you have already discovered all relevant classes needed in this case. Read the docs, all info on how to build requests is there. If something is unclear, feel free to ask here, of course.