Your post in curl command looks right, but servers can be weird. Try `-d @filename.json` if typing JSON directly is messy. Save your JSON to a file and run:
```bash
curl -X POST https://example.com/api -H "Content-Type: application/json" -d @data.json
```
Less error-prone! Also, https://reqbin.com/ lets you test curl commands online.
```bash
curl -X POST https://example.com/api -H "Content-Type: application/json" -d @data.json
```
Less error-prone! Also, https://reqbin.com/ lets you test curl commands online.
