Wait, why even use curl --post (I mean `-X POST`) manually?
If you’re doing a lot of API stuff, check out `httpie`—way simpler syntax.
But for your case:
```
curl -X POST -H "Content-Type: application/json" -d '{"key":"value"}' http://example.com
```
And yeah, silent fails are the worst. `-v` or GTFO.
If you’re doing a lot of API stuff, check out `httpie`—way simpler syntax.
But for your case:
```
curl -X POST -H "Content-Type: application/json" -d '{"key":"value"}' http://example.com
```
And yeah, silent fails are the worst. `-v` or GTFO.
