If you’re on Windows, PowerShell’s `curl` is an alias for `Invoke-WebRequest`. Use `curl.exe` instead for the real deal.
Here’s the command:
```
curl.exe -X POST https://example.com/api -H "Content-Type: application/json" -d '{\"name\":\"test\"}'
```
Note the escaped quotes—Windows hates JSON sometimes.
Here’s the command:
```
curl.exe -X POST https://example.com/api -H "Content-Type: application/json" -d '{\"name\":\"test\"}'
```
Note the escaped quotes—Windows hates JSON sometimes.
