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

Thanks everyone! Adding `-H "Content-Type: application/json"` and `-v` worked—turns out the API was returning a 400 error silently.

Now I’m seeing the post output of an api using curl api properly. Also, `jq` is a great suggestion—just installed it and it’s way cleaner.

One follow-up: If the API requires OAuth, what’s the best way to handle that in curl? Just add the token in the headers?

Messages In This Thread



Users browsing this thread: 6 Guest(s)