Subject: How can I view the post output of an api using curl api?
Hey folks,
I’m trying to check the post output of an api using curl api, but I’m not seeing anything. Am I missing something?
I’m running something like:
`curl -X POST https://example.com/api -d '{"key":"value"}'`
But the response is blank or just errors.
Is there a trick to properly capture the post output of an api using curl api? Maybe headers or flags I’m forgetting?
Also, if the api expects JSON, do I need to add `-H "Content-Type: application/json"`?
Thanks in advance!
(PS: sorry for typos, typing on mobile lol)
Hey folks,
I’m trying to check the post output of an api using curl api, but I’m not seeing anything. Am I missing something?
I’m running something like:
`curl -X POST https://example.com/api -d '{"key":"value"}'`
But the response is blank or just errors.
Is there a trick to properly capture the post output of an api using curl api? Maybe headers or flags I’m forgetting?
Also, if the api expects JSON, do I need to add `-H "Content-Type: application/json"`?
Thanks in advance!
(PS: sorry for typos, typing on mobile lol)
