Yo! curl http post can be tricky with JSON. You might need to escape the quotes depending on your shell. Also, some APIs are picky about trailing slashes or SSL. Try:
```bash
curl -X POST https://example.com/api \
-H "Content-Type: application/json" \
-d '{\"key\":\"value\"}'
```
For form data, swap the header to `application/x-www-form-urlencoded` and format data like `key=value&foo=bar`.
```bash
curl -X POST https://example.com/api \
-H "Content-Type: application/json" \
-d '{\"key\":\"value\"}'
```
For form data, swap the header to `application/x-www-form-urlencoded` and format data like `key=value&foo=bar`.
