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, 940 Views

Hey! Yeah, you def need the `-H "Content-Type: application/json"` header if the api expects JSON. Also, try adding `-v` for verbose mode to see more details about the request and response.

Sometimes the post output of an api using curl api won’t show if the server doesn’t send anything back or if there’s a silent error.

You could also try `-i` to include headers in the output.

Messages In This Thread



Users browsing this thread: 1 Guest(s)