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

QNetworkRequest add an 'Accept-Encoding' raw header

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 4.7.1
    • Network
    • None
    • ubuntu 10.10

    Description

      On linux version only (Mac OSX and Windows versions are ok)

      When using the well known QNetworkAccessManager class for download a foo.tar.gz file from a web site, I got this file in my local dir, but in fact the content of the local file foo.tar.gz is foo.tar ! The file seems to be downloaded then unziped then written in foo.tar.gz

      The same download with foo.zip or what so ever file works well...

      In fact the following code :

               QNetworkRequest req = QNetworkRequest(QUrl(newFilePathToDownload));
               downloadReply_ = netManager_.get(req);
      

      act as this one

               QNetworkRequest req = QNetworkRequest(QUrl(newFilePathToDownload));
               req.setRawHeader("Accept-Encoding","gzip");
               downloadReply_ = netManager_.get(req);
      

      You can reproduce this bug by compiling/taking the Qt examples network/download and type the following command under ubuntu 10.10

      ./download http://twilmot.free.fr/tt_0_41_linux.tar.gz
      

      the result local wrong file will be as describe upper

      Attachments

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

        Activity

          People

            earthdomain Earth Domain (Inactive)
            quadbyte thierry wilmot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes