PDA

View Full Version : Request ID of QNetworkaccessmanager get and post request



dineshkumar
4th February 2011, 05:45
Hi i want to know the request ID of each requests that are send through QNetworkaccessmanager. Please help me. Thanks in advance...

mcosta
4th February 2011, 10:35
what do you mean for request id?

ChrisW67
4th February 2011, 21:56
Hi i want to know the request ID of each requests that are send through QNetworkaccessmanager. Please help me. Thanks in advance...

The only inherent thing that resembles a "request id" is the QNetworkReply * returned by calls to QNetworkAccessManager::get() and friends.

You could possibly pass your own "request id" as a user attribute on the QNetworkRequest and retrieve it from the QNetworkReply. See setAttribute() and QNetworkRequest::User.