aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-22 20:06:13 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-22 20:06:13 +1200
commit3b144eaf6a9d4459eef1b7e3efacdb8b3419c0a7 (patch)
treeec7c2d778e7b89dd146b2fe6f2b54620bef9eb2b
parent4d2d0d760627dfaa5bff0e197bc827f4214c3211 (diff)
downloaddotfiles-3b144eaf6a9d4459eef1b7e3efacdb8b3419c0a7.tar.gz
dotfiles-3b144eaf6a9d4459eef1b7e3efacdb8b3419c0a7.zip
Add some appropriate flags to curl(1) calls
-rwxr-xr-xbin/rfcf2
-rwxr-xr-xbin/urlh2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/rfcf b/bin/rfcf
index 72c076a9..633eaace 100755
--- a/bin/rfcf
+++ b/bin/rfcf
@@ -9,4 +9,4 @@ fi
rn=$1
# Retrieve the RFC with curl(1)
-curl https://tools.ietf.org/rfc/rfc"$rn".txt
+curl -fsSL https://tools.ietf.org/rfc/rfc"$rn".txt
diff --git a/bin/urlh b/bin/urlh
index 6a768a9f..8e9463e7 100755
--- a/bin/urlh
+++ b/bin/urlh
@@ -9,7 +9,7 @@ fi
url=$1 header=$2
# Run cURL header request
-curl -I -- "$url" |
+curl -fIsSL -- "$url" |
# Unfold the headers
unf |