Try `curl -X POST https://example.com/api -d '{"key":"value"}' -H "Content-Type: application/json" -s -o /dev/null -w "%{http_code}"`
This gives just the HTTP status code. If it’s 200 but no post output of an api using curl api, the API might not return a body.
This gives just the HTTP status code. If it’s 200 but no post output of an api using curl api, the API might not return a body.
