User Tools

Site Tools


curl commands

Check if webserver is sending data compressed

curl --silent  --write-out "%{size_download}\n" --output /dev/null

curl -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.

curl -sSL -D - -o /dev/null

add -v flag to get more info like IP.


Tested on

See also


wiki/curl_commands.txt · Last modified: 2022/05/02 16:10 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki