HTTP 2.0 with redirect is not working
I'm sending a QNetworkRequest for a request with redirect and I'm setting these two attributes:
request->setAttribute(QNetworkRequest::HTTP2AllowedAttribute, true); request->setAttribute(QNetworkRequest::FollowRedirectsAttribute, true);
But when Qt tries to do the redirect, it prints
QHttpNetworkConnectionPrivate::_q_hostLookupFinished could not de-queue request
And looks like the request is never finished.
It works fine if I remove the redirection attribute and do the redirection manually. Is this a Qt bug?
I would assume that the web server does not do or make public the re-direction "by the book".
This is actually a Qt bug. Looks like it will be fixed in Qt 5.9.3
Can you share the link to the related bug report ?