How can I post output of an API using curl and handle the response? or What's the best way to post ou

22 Replies, 2314 Views

Bro, 99% of the time it’s the headers. Try adding `-H "Accept: application/json"` alongside your Content-Type.

Also, if the API docs suck, use `curl -v` and compare the output to a working request (e.g., from Postman).

Messages In This Thread



Users browsing this thread: 1 Guest(s)