How do I use curl to make a request? Need help with the syntax! or What's the correct way to curl mak

18 Replies, 1046 Views

If you’re on Windows, escaping quotes in curl make request is hell. Use double quotes outside, single inside:

`curl -X POST "https://example.com" -H "Thing: stuff" -d '{"data":"lol"}'`

Or use PowerShell + `curl.exe` (but that’s a whole other rant).

Messages In This Thread



Users browsing this thread: 1 Guest(s)