hello tbscope
thanks for the reply.
I am not getting any errors but the at the same time my data is also not going to the server following is the code i tried:
QNetworkRequest request
(QUrl("my url"));
param.addEncodedQueryItem("user_credentials",singleaccesstoken.toAscii());
param.addEncodedQueryItem("login","username");
param.addEncodedQueryItem("password","pwd");
data.append(param.toString().toAscii());
data.remove(0,1);
nam->put(request,data);
where nam is QNetworkAccessManager.
QNetworkRequest request(QUrl("my url"));
QByteArray data;
QUrl param;
param.addEncodedQueryItem("user_credentials",singleaccesstoken.toAscii());
param.addEncodedQueryItem("login","username");
param.addEncodedQueryItem("password","pwd");
data.append(param.toString().toAscii());
data.remove(0,1);
nam->put(request,data);
where nam is QNetworkAccessManager.
To copy to clipboard, switch view to plain text mode
I guess the way i am doing is wrong as this is my first time i am working with put with http.
Please let me know where i need to make changes.
Regards,
Bookmarks