Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [Qt 5.9.1] HTTP 2.0 not working in Android
Qt 6.11 is out! See what's new in the release blog

[Qt 5.9.1] HTTP 2.0 not working in Android

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 793 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dacastil
    wrote on last edited by dacastil
    #1

    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?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dacastil
      wrote on last edited by
      #2

      The reason was that the version of OpenSSL I was using in Android was too old and didn't support HTTP 2.0

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved