diff options
-rw-r--r-- | bash/bashrc.d/curl.bash | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bash/bashrc.d/curl.bash b/bash/bashrc.d/curl.bash new file mode 100644 index 00000000..6265cd10 --- /dev/null +++ b/bash/bashrc.d/curl.bash @@ -0,0 +1,6 @@ +# Shortcut to make HEAD requests with cURL; good for testing webpage +# compression and caching headers +curlh() { + curl -IH 'Accept-Encoding: gzip,deflate' "$@" +} + |