How can I view the post output of an API using curl API? or What’s the best way to check the post out

18 Replies, 932 Views

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.

Messages In This Thread



Users browsing this thread: 1 Guest(s)