Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-98642

Qml/QmlScene : malformed http request when opening a qml file over http with qml/qmlscene

    XMLWordPrintable

Details

    • f622090b1d92a5b71688964fb67e0cab4407c69c 4c930e9d13738ac0faaaed3aa5b1c34509b04019

    Description

      Hi,

      When I launch a simple QML page over HTTP with the qml/qmlscene tools (they both have the same issue) the http request is malformed.

      It's easy to reproduce it, you can launch a simple http server and launch a file with qml/qmlscene from it.

      For exemple locally with PHP :

      php -S 127.0.0.1:9000 -t /home/gpercepied/Documents/workspace/brouillon
      

       

      Then try to launch main.qml (which is a simple rectangle) with qml or qmlscene :

      qml http://127.0.0.1:9000/main.qml

       

      Then I've got this error from qml :

      QQmlApplicationEngine failed to load component
      http://127.0.0.1:9000/main.qml: Remote host closed the connection
      qml: Did not load any objects, exiting.

       

      And this error from php server :

      [Thu Nov 25 14:05:49 2021] 127.0.0.1:36762 Accepted
      [Thu Nov 25 14:05:49 2021] 127.0.0.1:36762 Invalid request (Malformed HTTP request)
      [Thu Nov 25 14:05:49 2021] 127.0.0.1:36762 Closing

       

      It works fine with the same configuration and file with qt 5.15

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            manordheim Mårten Nordheim
            galliume Guillaume Percepied
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes