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, 1100 Views

Why’s everyone overcomplicating this? For a simple GET with headers:

`curl "https://example.com/api?param=stuff" -H "Authorization: lol"`

Done.

If you’re POSTing JSON, add `-H "Content-Type: application/json"` and `-d '{"json":"here"}'`.

curl make request ain’t rocket science once you ditch the docs and experiment.

Messages In This Thread



Users browsing this thread: 1 Guest(s)