Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 665 Bytes

curl-post-format.md

File metadata and controls

31 lines (21 loc) · 665 Bytes

cURL Output format

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

Reference