Skip to content

Instantly share code, notes, and snippets.

@v-kolesnikov
Last active August 29, 2015 14:21
Show Gist options
  • Save v-kolesnikov/3ea800dfba1c0ec514dd to your computer and use it in GitHub Desktop.
Save v-kolesnikov/3ea800dfba1c0ec514dd to your computer and use it in GitHub Desktop.
Debug Http Request and Reply Headers
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