Solved QNetworkAccessManager post method with arguments.
I have to use post method to call the URL"http://myserver:4001/ticket_management/tasks" given below with additional arguments
- hours_spent:<float value>
How can post this using QNetworkAccessManager. I tried using QHttpMultiPart but wasn't successful.
Please can anyone give a sample code on how to form the QHttpMultipart for this post message.
Thanks in advance.
Pablo J. Rogina last edited by
@Uday-More said in QNetworkAccessManager post method with arguments.:
with additional arguments
you may want to look at this SO question to see how QUrlQuery::addQueryItem method is used to care for the param/value pairs which are then sent as part for the data of the POST request
@Pablo-J-Rogina . Done. Thanks resolved the problem.