Skip to content

Commit

Permalink
http/modify/fragment.md: mention the fragment globbing trick
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Jun 11, 2024
1 parent 51b17a3 commit 94b80b9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions http/modify/fragment.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 exact same URL
many times on the command line.

For example, download this same exact URL twenty times:

curl "https://example.com/#[1-20]"

0 comments on commit 94b80b9

Please sign in to comment.