How do I use curl to make a request from the command line? or What's the best way to make a request w

24 Replies, 1705 Views

If you’re just starting with curl make request, keep it simple.

```
curl -s https://example.com
```
The `-s` silences the progress bar, so it’s cleaner.

For APIs, `-H` is your friend:
```
curl -H "Accept: application/json" https://api.example.com/data
```

Messages In This Thread



Users browsing this thread: 1 Guest(s)