How do I properly make a POST in cURL? Need help with the syntax! or What’s the correct way to send a

18 Replies, 1438 Views

If you’re getting SSL errors, try `-k` or `--insecure` (just for testing!).

```
curl -k -X POST https://example.com/api -H "Content-Type: application/json" -d '{"key":"value"}'
```

But don’t do this in prod, obv. For debugging, it’s a lifesaver.

Messages In This Thread



Users browsing this thread: 1 Guest(s)