[Qt-interest] Howto get http status code ?

Aaron Lewis aaron.lewis1989 at gmail.com
Wed Mar 17 12:56:53 CET 2010


Hi,

I tried to work with QNetworkAccessManager , everything's fine now.

Can anyone tell me how to read http status code ?

I tried QNetworkReply's Help , didn't found something useful.

-snip-
connect(manager, SIGNAL(finished(QNetworkReply*)),
            this, SLOT(parseReal404(QNetworkReply*)));


void sample::signalHandler(QNetworkReply *reply)

-snip-

I signalHandler to handle QNetworkReply when signal is emitted from 
QNetworkAccessManager,
So now i should add sth. in sample::signalHandler , to parse http status 
code.

Thanks all.

-- 
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4r0n on freenode




More information about the Qt-interest-old mailing list