Test an HTTP service
Run a small set of repeatable checks before and after a change.
Measure one complete request
Use a hostname when a server hosts several sites. The sample command discards the body and reports status, connection time, and total request time.
curl -sS -o /dev/null -w 'status=%{http_code} connect=%{time_connect}s total=%{time_total}s\n' https://example.com/Interpret the response
- 200
- The requested resource was returned. Verify that it contains the expected content.
- 301 or 308
- The service redirects the client. Inspect the Location header and verify the destination.
- 502 or 504
- An intermediary could not get a usable response from its upstream. Check application health and response time.