From 8a33b0dab738d981f179c87d90edac8939f878a7 Mon Sep 17 00:00:00 2001 From: Yuri Slobodyanyuk Date: Fri, 18 Mar 2022 17:32:25 +0200 Subject: [PATCH] Fixing curl cookbook --- cheat-sheets/curl-cookbook-of-examples.adoc | 1 + 1 file changed, 1 insertion(+) diff --git a/cheat-sheets/curl-cookbook-of-examples.adoc b/cheat-sheets/curl-cookbook-of-examples.adoc index 2e7fe8f..001f732 100644 --- a/cheat-sheets/curl-cookbook-of-examples.adoc +++ b/cheat-sheets/curl-cookbook-of-examples.adoc @@ -160,6 +160,7 @@ AS | IP | AS Name == Make sure curl follows redirections (`Location:`) automatically, using the correct `Referer` on each redirection +Use `-L` option to tell curl to follow the _Location_ header. ---- curl -L -e ';auto' -o index.html https://example.com