Print status code and timing data after the transfer.
Section: Basics and Output
Write response metadata
bash
bash
curl -s -o /dev/null -w 'status=%{http_code} time=%{time_total}\n' https://example.comExplanation
`-w` / `--write-out` is great for monitoring, scripts, and diagnostics.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Basics and Output
Save using remote filename
Download and save using the server-provided path basename.
Fetch headers only
Send a HEAD request to inspect headers without downloading the body.