09-26-2013 02:49 AM
How can i send three parameters via GET to my server, i need to send three sttrings generated in my app to the server.
I tried with network request whit no succes, the request goes but the parameters never arrive
QNetworkAccessManager *manager = new QNetworkAccessManager(this);
Solved! Go to Solution.
09-26-2013 11:14 AM
You could add the strings as GET parameters to the URL:
But I think you should POST these fields to the server because URLs have a maximum length:
data.append("msg=hello world! how are you?");
I've wrapped this into a method, that takes QMap<QString,QString> as parameter and returns QByteArray, because it's quite annoying to keep in mind to add "&" between each key-value pair.
09-27-2013 07:33 AM
09-27-2013 07:36 AM