From d7245eb7db5d78b7126146f7533c8a5c6b93f12d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 11 Jun 2024 10:58:10 +0200 Subject: [PATCH] http/modify/fragment.md: mention the fragment globbing trick Closes #462 --- http/modify/fragment.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/http/modify/fragment.md b/http/modify/fragment.md index 7c1cd64eea..823a552067 100644 --- a/http/modify/fragment.md +++ b/http/modify/fragment.md @@ -6,3 +6,13 @@ pound sign and string at the end of the URL. Like for example the pound/hash sign to the end of the URL, is only intended for local use and is not sent over the network. curl simply strips that data off and discards it. + +## A range trick + +A practical way to exploit the fact that the fragment is not sent over the +wire, is to use that field for ranges if you want to use the same URL many +times on the command line. + +For example, download this URL twenty times: + + curl "https://example.com/#[1-20]"