Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
4.7.1
-
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