User Tools

Site Tools


wiki:curl_commands

This is an old revision of the document!


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.

curl -sSL -D - example.com -o /dev/null

Headline

Tested on

See also

References

wiki/curl_commands.1636546613.txt.gz · Last modified: 2021/11/10 13:16 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