curl --write-out builder
Click a variable to drop it into the format string. curl --write-out (short flag -w) prints formatted transfer info after a request finishes; every datum is a %{name} token. The reference below is searchable, the sample shows what the string produces, and the command at the bottom is ready to copy.
sample output (with example values)
full command
Variables
No variable matches that search.
Format syntax
%{name} a variable, listed above ·
%% a literal percent sign ·
\n newline ·
\t tab ·
\r carriage return ·
\\ a literal backslash.
curl does not add a trailing newline, so most format strings end with \n. Wrap the whole string in single quotes in your shell so $ and backticks are not expanded. For a long format string, put it in a file and pass -w @filename (or -w @- to read it from stdin). The %{json} variable emits every value above as one JSON object, which is the easiest form to pipe into jq.
Single static HTML file, no network. Variable set verified against curl 8.x. Source: github.com/truffle-dev/tool-curl-writeout. MIT.