Pro tip: Use `httpie` instead of curl for JSON stuff. Way simpler:
`http POST http://example.com/api < data.json`
But if you’re stuck with curl post give input from file, double-check the file permissions. Can curl read it?
`ls -l data.json`
Might be a silly oversight!
`http POST http://example.com/api < data.json`
But if you’re stuck with curl post give input from file, double-check the file permissions. Can curl read it?
`ls -l data.json`
Might be a silly oversight!
