windows 7 - How can I stop compressed files being decompressed when I download them?

  • jrb

    I've found that downloading certain gzip compressed files from our workplace's internal network causes the files to be decompressed as part of the download process. I don't want this to happen (they're linux kernel images). Can I stop it? This seems to happen in all web browsers I try, but not if I use wget.

  • Answers
  • Colin Pickard

    It's common to use GZip to compress data sent over HTTP connections so browsers will extract the data if the see the header Content-Encoding: gzip. Almost certainly the server on your internal network is configured to send these files with both Content-Type: application/x-gzip and Content-Encoding: gzip headers. This is not a great set up on your server; there was some discussion among Firefox developers about how to deal with this situation but they decided that if people wanted to do that with a server that was their problem :)

    Your best bet is to fix your internal server - exactly how depends on which server you're using. If you can't do that, you can try changing the accept headers in your browser (Firefox instructions). That might not work since not all servers will respect those, and you'll want to remember to change them back since they will slow down your browser on other sites.

  • Related Question

    browser - How can I automatically store the download URI along with every file I download?
  • Hauke

    I download many files every day that I store on my hard drive (scientific papers in my case, but could be any file).

    To know about their public availability and share them (months) later, I would like to store the download URL along with the file. How can I associate the download source with the document in the smartest way possible?

    The best idea I have had so far, but haven't found implemented is:

    • a browser plugin, that stores a URI shortcut of the same name in the same location on the file system, for every download made

    Any ideas whether this or an alternative exists?

  • Related Answers
  • John T

    How about the Save Link in Folder add-on for Firefox? You can add any folders to the dialog, and when you want to save the link of something before downloading, simply right-click the link and choose the folder to save it in.

  • Dennis

    This may be a bit over the top, but if I were doing it, I would grab all the data out of the Firefox download manager database, then just save that incrementally as an easily search able file via CSV. In my mind rather than having a bunch of files that contain the names and original links, I would have all that data contained in a more convenient search able format (opinion). Depending on download frequency and the size of the file I might make this (lets say spreadsheet) file once a month or so. To accomplish this (and obviously this depends on using Firefox) I would.

    Install Sqlite manager for Firefox.

    Open downloads.sqlite in the profile folder. something like C:\Documents and Settings\man\Application Data\Mozilla\Firefox\Profiles \WhateverYourProfileIs\downloads.sqlite

    Go to the "Export Wizard" tab.

    Set "Separate Fields By" to "Comma".

    Export, then open in my program of choice.