Make HTTP POST request with a list of named parameters in Qt

后端 未结 3 1013
后悔当初
后悔当初 2021-01-26 21:21

I need to make an HTTP POST request to a server from my Qt application.

The POST request would contain a list of named values, i.e. key/value pairs. They will be mostly

3条回答
  •  春和景丽
    2021-01-26 22:09

    You can use QNetworkAccessManager together with QNetworkRequest to post http requests.
    If you want to send key/value pairs, consider using JSON.

提交回复
热议问题