Hey! You’re close, but curl --post isn’t the correct flag—it’s actually `-d` or `--data` for form data. Try this:
`curl -d "name=foo&age=25" https://example.com`
For JSON, use `-H "Content-Type: application/json"` and `-d '{"name":"foo","age":25}'`.
And `-X POST` explicitly sets the method, while `-d` implies POST. Hope that helps!
`curl -d "name=foo&age=25" https://example.com`
For JSON, use `-H "Content-Type: application/json"` and `-d '{"name":"foo","age":25}'`.
And `-X POST` explicitly sets the method, while `-d` implies POST. Hope that helps!
