Quote Originally Posted by gowreesh View Post
Hi,
Thanks for the reply.
THis is my first project as a developer. Requesting you for the one more clarification.

Here is the question.
By using this below 1st piece of code I can read both header and body of the xml file.
1. QString data = (QString) pReply->readAll();

and by using this 2nd piece of code I can read only body of the xml file
2. QString data = (QString) pReply->readRead();

Does this my understanding this concept is correct.?
In my experience with QNetworkReply, QNetworkReply::readAll() does not return header data. You'd have to show me output that contains headers and data for me to believe that...

Your 2nd example isn't even valid syntax, so no comment there, sorry. Show me where you receive headers *and* data when doing a readAll().