Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. HTTP 2.0 with redirect is not working
Forum Updated to NodeBB v4.3 + New Features

HTTP 2.0 with redirect is not working

Scheduled Pinned Locked Moved Solved General and Desktop
qt5.9.1
6 Posts 3 Posters 2.6k Views 2 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 A Former User
    #1

    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?

    m.sueM 1 Reply Last reply
    0
    • D dacastil

      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?

      m.sueM Offline
      m.sueM Offline
      m.sue
      wrote on last edited by
      #2

      Hi @dacastil

      I would assume that the web server does not do or make public the re-direction "by the book".

      -Michael.

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

        This is actually a Qt bug. Looks like it will be fixed in Qt 5.9.3

        1 Reply Last reply
        1
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          Can you share the link to the related bug report ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          D 1 Reply Last reply
          1
          • SGaistS SGaist

            Hi,

            Can you share the link to the related bug report ?

            D Offline
            D Offline
            dacastil
            wrote on last edited by
            #5

            @SGaist Here it goes: https://bugreports.qt.io/browse/QTBUG-63471?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel

            1 Reply Last reply
            3
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Thanks !

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              • Login

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