Back{: .button}
The output format of cURL can be specified with -w
Specify the format in a file format.txt
time_namelookup: %{time_namelookup}
time_connect: %{time_connect}
time_appconnect: %{time_appconnect}
time_pretransfer: %{time_pretransfer}
time_redirect: %{time_redirect}
time_starttransfer: %{time_starttransfer}
———
time_total: %{time_total}
Now we can specify to use this file to write out output
curl -w "@format.txt" http://localhost:8080/resource