Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I read headers from a QNetworkReply

Tags:

c++

http

qt

How can one read headers for example a cookie out of a QNetworkReply?

like image 616
TasostheGreat Avatar asked Jan 25 '26 06:01

TasostheGreat


1 Answers

I just thought to add to the above answer concerning rawHeader

QList<QByteArray> headerList = reply->rawHeaderList();
foreach(QByteArray head, headerList) {
    qDebug() << head << ":" << reply->rawHeader(head);
}
like image 197
Carol Avatar answered Jan 27 '26 23:01

Carol



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!