Read more

Request a gzipped response from a web server using Wget

Arne Hartherz
December 05, 2011Software engineer at makandra GmbH

To reduce download time, application servers usually serve content using gzip compression Show archive.org snapshot , if the browser supports it.

Illustration UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
Read more Show archive.org snapshot

When using a tool like Wget to explicitly download an application's response, the server responds with the uncompressed version:

wget http://example.com/

If you are curious about the compressed file's size, pass the corresponding HTTP header:

wget --header="accept-encoding: gzip" http://example.com/
Posted by Arne Hartherz to makandra dev (2011-12-05 14:24)