From 3b144eaf6a9d4459eef1b7e3efacdb8b3419c0a7 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 22 Aug 2016 20:06:13 +1200 Subject: Add some appropriate flags to curl(1) calls --- bin/rfcf | 2 +- bin/urlh | 2 +- 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 | -- cgit v1.2.3