Hi!
My problem is the following:
Response of QNetworkReply::readAll is empty when QNetworkReply::error() != NoError. Is this normal?
I've readed doc relating QIODevice::readAll:
That mean that every time http status is different from 200 OK QNetworkReply is unable to deliver other info that headers in response??This function has no way of reporting errors; returning an empty QByteArray() can mean either that no data was currently available for reading, or that an error occurred.
I've a Node+Express server that always send a detailed --json-- description in case of http status is different from 200; I cant get this description from my Qt client base on QNAM.
How can I change this behavior, I mean, make QNetworkReply read all received data EVEN IF http status is not 200 OK?
Qt version is 5.3, OS Win 7 64b.
Thanks a lot for your help.
Bookmarks