From 96f2cd5cfd9f3bf7f7b021ca394fc552d4f3af48 Mon Sep 17 00:00:00 2001 From: Mike Perez Date: Sun, 20 May 2018 10:36:45 -0700 Subject: [PATCH] Update curl cheat sheet with redirect Adding command example of downloading a file and following 301 redirects. --- sheets/curl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sheets/curl b/sheets/curl index 1aef249..e599063 100644 --- a/sheets/curl +++ b/sheets/curl @@ -10,6 +10,9 @@ curl -O URLOfFirstFile -O URLOfSecondFile # Download all sequentially numbered files (1-24) curl http://example.com/pic[1-24].jpg +# Download a file and follow redirects +curl -L http://example.com/file + # Download a file and pass HTTP Authentication curl -u username:password URL