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

QtNetwork should treat HTTP 100-Continue more robustly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 4.8.4, 5.0.0
    • Network
    • None

    Description

      Test method: deploy the below perl cgi script as test.cgi to Apache/xampp:

      #!c:/perl/bin/perl.exe

      $Error = @ARGV[0];
      $body = @ARGV[1];

      if ( $Error == 100 )
      {
      print "HTTP/1.1 100 Continue\n\n" ;
      print "<html><body>$Error<br></body></html>\n";
      print "HTTP/1.1 200 OK\n\n" ;
      print "<html><body>OK<br></body></html>\n\n";
      return;
      }

      then access /cgi-bin/test.cgi?100

      Chrome displays the result as below:
      100
      HTTP/1.1 200 OK
      OK

      Firefox displays the result as below: (it skips the first body data)
      OK

      QtWebKit can't display anything because QtNetwork module thinks HTTP 100-Continue response should not contain any body data.

      Attachments

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

        Activity

          People

            shkearns Shane Kearns
            chenzx Chen Zhixiang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes