PDA

View Full Version : Error with "void QHttp::responseHeaderReceived ( const QHttpResponseHeader & resp )"



k.qasempour
7th June 2012, 07:11
hi friends. im working with http and im trying to show the recived header file in a text box... so im using

ChrisW67
7th June 2012, 07:23
Uh oh! Abducted by aliens mid-sentence... never bodes well :D

You should not be using QHttp in new code.

This class is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

You should use QNetworkRequest, QNetworkAccessManager and QNetworkReply. In QNetworkReply you'll find various ways to access the headers in the response (which I think is what you wanted) or the HTTP response code (see QNetworkReply::attribute())

k.qasempour
7th June 2012, 07:28
dear ChrisW67


there is a problem here plz see this link and read the full post...

http://www.qtcentre.org/threads/49306-Error-with-void-QHttp-responseHeaderReceived-(-const-QHttpResponseHeader-amp-resp-)-quot



http://www.qtcentre.org/threads/49306-Error-with-void-QHttp-responseHeaderReceived-(-const-QHttpResponseHeader-amp-resp-)-quot