If you’re struggling with curl post give input from file, maybe the server expects URL-encoded data? Try:
`curl -X POST http://example.com/api --data-urlencode "$(cat data.json)"`
Or, if it’s a file, use `--data-urlencode @data.json`.
Sometimes APIs are just... special.
`curl -X POST http://example.com/api --data-urlencode "$(cat data.json)"`
Or, if it’s a file, use `--data-urlencode @data.json`.
Sometimes APIs are just... special.
