Ah, the classic curl confusion! `curl --post` isn’t valid—use `-X POST` or just `-d`.
For form data:
`curl -d "name=foo&age=25" https://example.com`
For JSON, don’t forget the header:
`curl -X POST -H "Content-Type: application/json" -d '{"name":"foo"}' https://example.com`
Also, try https://reqbin.com/ to test requests before curling.
For form data:
`curl -d "name=foo&age=25" https://example.com`
For JSON, don’t forget the header:
`curl -X POST -H "Content-Type: application/json" -d '{"name":"foo"}' https://example.com`
Also, try https://reqbin.com/ to test requests before curling.
