curl -s -w 'status=%{http_code} time=%{time_total}s\n' https://example.com

Category: Web App Development

curl -s -w 'status=%{http_code} time=%{time_total}s\n' https://example.com

Show HTTP status and total time for a request

Fetches the page silently and prints a status line with the HTTP status code and total request time. The -w flag formats a write-out message after the transfer, and -s silences the progress bar. Time the pieces with %{time_starttransfer} to isolate server latency.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.