{{tag>curl bash}} ====== curl commands ====== ===== Check if webserver is sending data compressed ===== curl https://example.com/bigcsv.csv --silent --write-out "%{size_download}\n" --output /dev/null curl https://example.com/bigcsv.csv -H "Accept-Encoding: gzip,deflate" --silent --write-out "%{size_download}\n" --output /dev/null The first command will return smaller number of bytes than the second one. ===== Print headers only ===== curl -sSL -D - example.com -o /dev/null add ''-v'' flag to get more info like IP. ===== Headline ===== ====== Tested on ====== * ====== See also ====== ====== References ======