I have two handles to hand these two signals:
connect(myhttp, SIGNAL(requestFinished(int, bool)),
this, SLOT(httpRequestFinished(int, bool)));
connect( myhttp, SIGNAL(responseHeaderReceived(const QHttpResponseHeader &)),
this, SLOT(readResponseHeader(const QHttpResponseHeader &)));
It looks like that the signal generated in this sequence:
1)responseHeaderReceived
2)requestFinished
The slots appeared to be called in sequence:
readResponseHeader (interrupted)
requestFinished(until finish the routine)
readResponseHeader(continue until finished)
The problem I have is that before I can finish handling the problem in readResponseHeader(), and requestFinished() is called with error=true?
Any suggestions?
Bookmarks