Created
November 2, 2011 08:29
-
-
Save othree/1333179 to your computer and use it in GitHub Desktop.
Check 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
function check_compression { | |
local unzipped=`curl "$1" --silent --write-out "%{size_download}" --output /dev/null` | |
local zipped=`curl -H "Accept-Encoding: gzip,deflate" "$1" --silent --write-out "%{size_download}" --output /dev/null` | |
echo "unzipped size: $unzipped, zipped size: $zipped" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment