Unsolved Http post
-
Hi friends,
QNetworkAccessManager *Postmgr2 = new QNetworkAccessManager(this); QByteArray schedule_summaryData; QString cmd = "access_token="+access_token+"&start=02/21/2019&end=02/21/2019"; qDebug() << "################ Command: ######################" << cmd; schedule_summaryData.append(cmd); QUrl request2("http://192.168.0.105:5001/api/yess_scheduleplans/get_schedule_summary?"); QNetworkRequest r2(request2); r2.setRawHeader("Content-Type", "application/json"); r2.setRawHeader("Accept-Encoding", "gzip"); r2.setHeader(QNetworkRequest::ContentTypeHeader,"application/x-www-form-urlencoded;charset=UTF-8"); r2.setRawHeader("Connection", "keep-alive"); qDebug() << "schedule_summaryData:" << schedule_summaryData; Postmgr2->post(r2,schedule_summaryData);
In above code i want to print whole command of Postmgr2 post can anybody give the soultion
[koahnig:code tags added]
-
@satyanarayana143 maybe using Wireshark to capture the actual network traffic is better to see what is actually being sent...
-
without whireshark no way to find post command.