Dude, CURL --POST with JSON is fussy. You need:
`curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{"stuff":"here"}' http://example.com`
Some APIs are picky about the `Accept` header too.
For form data, `-d` is fine, but if you’re uploading files, use `-F` instead.
`curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{"stuff":"here"}' http://example.com`
Some APIs are picky about the `Accept` header too.
For form data, `-d` is fine, but if you’re uploading files, use `-F` instead.
