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

XMLHttpRequest : doesn't work anymore after restarting the wifi adapter

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6
    • 5.5.1
    • None
    • Ic52fc9f7999f3dd00ef4022c959361782bd1ccd2

    Description

      Problem found on MacOSX, Ios & Android with Qt 5.5.1 official release for MacOSX

      Here is a minimal code to reproduce the issue :

      Window {

      visible: true

      Button {

      text: "Test"

      onClicked: {

      var req = new XMLHttpRequest()
      req.onreadystatechange = function (event) {
      if (req.readyState === XMLHttpRequest.DONE)

      { console.log("Make request : status = " + req.status) console.log(req.responseText.toString()) }

      }

      req.open("GET", "http://www.google.fr", true)
      req.send()
      }
      }
      }

      Steps to reproduce :

      Execute the code above
      Click on test : status = 200, you should see data from google
      Turn off your wifi adapter
      Click on test: status = 0, no data
      Turn on your wifi adapter
      Click on test several times: you can't reach data anymore. Status is always equals to 0

      The same code works great with Qt 5.5.0

      Attachments

        Activity

          People

            lpotter Lorn Potter
            geoffroy.aulagner AULAGNER
            Votes:
            9 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: