From 495144564313b688258d46969e12df00dc310e62 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 18 Feb 2014 13:05:29 +1300 Subject: Add handy cURL function --- bash/bashrc.d/curl.bash | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 bash/bashrc.d/curl.bash (limited to 'bash/bashrc.d') 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' "$@" +} + -- cgit v1.2.3