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

Qt WebKit XMLHttpRequest POST with empty data fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: P2: Important P2: Important
    • None
    • 5.5.0
    • WebKit
    • None

      POSTs with empty data fails:

       

      var xhr = new XMLHttpRequest();

      xhr.open('POST','https://url', true);

      xhr.send("");

       

      This is caused by FormDataIODevice::readData returning 0 instead of -1

       

       

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

            annulen Konstantin Tokarev
            stijnlast Stijn Last
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes