Reputation: 7891
I know that I can have some HTTP request, say post , for some webpage with QNetworkAccessManager::post function. And all things would be good. But I need the raw request that Qt creates and sends to port 80 of some server. Let me explain, I have a module that I can only create TCP connection with that module to a server. So I can't use Qt classes directly. I have to get the request by some way from Qt and then try to send to port 80. Some thing like this:
QString SomeClass::httpRequest();
Thanks!
Upvotes: 0
Views: 334
Reputation: 411
Take a look in the class QNetworkReply::rawHeader[1], which is returned by post method
1 - http://developer.qt.nokia.com/doc/qt-4.8/qnetworkreply.html#rawHeader
Upvotes: 0