Ravi Sir's Cards › AWS
Test an API from a server?
This interview card answers: Test an API from a server? Show headers. Fail on HTTP errors. Send JSON.
Read card text
What this card says
What it is
Show headers.
curl -sI URL
Why it matters
Fail on HTTP errors.
curl -fsS URL
How / example
Send JSON.
curl -H 'Content-Type: application/json' -d '{}' URL