Skip to content

Instantly share code, notes, and snippets.

@jmbataller
Created April 8, 2015 09:16
Show Gist options
  • Save jmbataller/8e4138c473abc9c7441b to your computer and use it in GitHub Desktop.
Save jmbataller/8e4138c473abc9c7441b to your computer and use it in GitHub Desktop.
How to test GZIP
Request NO GZIP:
curl http://localhost:8080/customers/1111 --silent --write-out "%{size_download}\n" --output /dev/null
Request GZIP:
curl http://localhost:8080/customers/1111 --silent -H "Accept-Encoding: gzip,deflate" --write-out "%{size_download}\n" --output /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment