Diagnose an HTTP API from the command line
8 steps · about 1 h 56 min · Intermediate
- Read the response beyond its body (article, curl, 18 min)
Select output, header and status options from curl's command reference.
- Follow and inspect redirects (article, curl, 14 min)
Reproduce HTTP exchanges and redirects as a scriptable sequence.
- Send explicit request headers (article, curl, 18 min)
Build requests with deliberate methods, headers and payloads.
- Reproduce a request body (article, Everything curl, 14 min)
Choose the correct form, JSON or raw-body mechanism.
- Trace the protocol conversation (article, Everything curl, 12 min)
Expose connection, TLS and header details while keeping secrets redacted.
- Investigate TLS verification (article, curl, 14 min)
Distinguish certificate and protocol failures without disabling safety casually.
- Recognise common connection failures (article, curl, 14 min)
Use known failure patterns to narrow a hang or unexpected response.
- Interpret curl failure codes (article, curl, 12 min)
Preserve and explain curl's failure signal in a repeatable diagnostic command.