[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 that reply->attribute(QNetworkRequest::HTTP2WasUsedAttribute) is returning true. But in Android reply->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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.