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

Dude, curl make request is super easy once you get the hang of it.

Just type:
```
curl -v http://google.com
```
The `-v` flag shows you EVERYTHING—headers, response, all the juicy details.

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

Messages In This Thread



Users browsing this thread: 1 Guest(s)