According to Joseph Scott’s blog post, you can use `-w` option to supply template with curl-specific variables.
```
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}
```
You can either create a file with a content above or pass the template as a string to the `-w` option.
`curl -w ”@curl-format.txt” -o /dev/null -s http://test.local`
```bash
curl -w ”time_namelookup: %{time_namelookup}\ntime_connect: %{time_connect}\ntime_appconnect: %{time_appconnect}\ntime_pretransfer: %{time_pretransfer}\ntime_redirect: %{time_redirect}\ntime_starttransfer: %time_starttransfer}\ntime_total: %{time_total}” -o /dev/null http://test.local
```
### See also
1. [[What is CURL?]]
### Reference
1. [Timing Details With cURL](https://blog.josephscott.org/2011/10/14/timing-details-with-curl/)