01-25-2014 05:28 PM
According to the login / logout docs, the login request is a post request. The parameters should be encoded in the data sent, not in the URL. You have code to do that in your script bt I suspect you are not calling the post function.
01-25-2014 09:47 PM
Can you give me any little example to make a successfull post method?
If it's in c++ to bring it to cascades would be better.
01-25-2014 10:12 PM
Here is a stripped down example from one of my old sample apps with some info disguised ...
// Create and send the network request const QUrl requestURL("https://xxxxx/yyyyyyyy"); QNetworkRequest *request = new QNetworkRequest(requestURL); // Create QVariantMap for post data QVariantMap postData; // Populate each object with data postData["Subject"] = subject; postData["Text"] = text; JsonDataAccess jda; QByteArray postBytes; jda.saveToBuffer(postData, &postBytes); m_networkAccessManager->post(*request, postBytes);
In your case, you take you parameter QString and convert it to a QByteArray for the post data.
Hope this helps.