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

XMLHTTPRequest has wrong responceText after redirect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.0.2
    • None
    • Qt 5.0.2 rc, Windows 7, msvc2010

    Description

      I'm sending XHR to the server1. It sends some data, then redirects to the server2. I receive concatenated data from both servers.

      In the attachment implementations of the serves on node.js with express module. The first server sends this string: "This is text from 1-st server", the second - "This is text from 2-nd server".
      Using test qml application gives following result:
      "Result: This is text from 1-st serverThis is text from 2-nd server"

      When using Firefox or Chrome on the same url, I receive correct result:
      "This is text from 2-nd server"

      Attachments

        1. server_1.js
          0.3 kB
        2. server_2.js
          0.2 kB
        3. XHRRedirect.qml
          0.7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            krnekit Nikita Krupenko
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes