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 online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
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)