Struggling with curl POST too? Here’s the bare minimum:
```
curl -d '{"name":"test"}' -H "Content-Type: application/json" https://example.com/api
```
Fun fact: `-X POST` isn’t needed if you use `-d`.
If you’re getting ignored, try `-v` to see if the request even leaves your machine.
```
curl -d '{"name":"test"}' -H "Content-Type: application/json" https://example.com/api
```
Fun fact: `-X POST` isn’t needed if you use `-d`.
If you’re getting ignored, try `-v` to see if the request even leaves your machine.
