Last active
August 29, 2015 14:21
-
-
Save v-kolesnikov/3ea800dfba1c0ec514dd to your computer and use it in GitHub Desktop.
Debug Http Request and Reply Headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
qDebug() << "Request:"; | |
for (auto header : reply->request().rawHeaderList()) { | |
qDebug() << header << ":" << reply->request().rawHeader(header); | |
} | |
qDebug() << "\nReply:"; | |
for (auto header : reply->rawHeaderPairs()) { | |
qDebug() << header.first << ":" << header.second; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment