Solved [Qt 5.9.1] HTTP 2.0 not working in Android
-
I'm trying to use HTTP 2.0 for my network requests. I'm doing
request->setAttribute(QNetworkRequest::HTTP2AllowedAttribute, true)
and this seems to work in desktop, I see thatreply->attribute(QNetworkRequest::HTTP2WasUsedAttribute)
is returning true. But in Androidreply->attribute(QNetworkRequest::HTTP2WasUsedAttribute)
is returning false. I'm hitting the same servers in both cases. I don't know what I might be missing. Could this be a bug in Qt? -
The reason was that the version of OpenSSL I was using in Android was too old and didn't support HTTP 2.0