curl --post? Nah, fam. It’s `-d` for data.
Form data:
`curl -d "name=foo&age=25" https://example.com`
JSON:
`curl -X POST -H "Content-Type: application/json" -d '{"name":"foo"}' https://example.com`
`-X POST` is redundant with `-d`, but some folks like being explicit.
Form data:
`curl -d "name=foo&age=25" https://example.com`
JSON:
`curl -X POST -H "Content-Type: application/json" -d '{"name":"foo"}' https://example.com`
`-X POST` is redundant with `-d`, but some folks like being explicit.
