How to Use curl to Get Info When Posting a Request? or Can curl Get Info When Posting Data? How?

22 Replies, 2054 Views

Pro tip: use `jq` to parse JSON responses cleanly. Combine it with curl like:

```
curl -X POST [url] -d "data" -s | jq .
```

For curl get info when post, this makes the output way more readable. `-s` silences the progress bar too.

Messages In This Thread



Users browsing this thread: 1 Guest(s)