Created
September 8, 2017 01:49
-
-
Save jamesvulling/b6129cd33bafb02af6fa6cf7a8e12c3d to your computer and use it in GitHub Desktop.
Check for gzip compression
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl https://www.amazon.com --silent --write-out "%{size_download}\n" --output /dev/null | |
curl https://www.amazon.com --silent --write-out "%{size_download}\n" --output /dev/null -H "Accept-Encoding: gzip,deflate" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment