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

22 Replies, 2110 Views

Hey! For curl get info when post, I usually combine `-i` (headers) and `-v` (verbose) to get the full picture.

But yeah, `-v` can be messy. Try `-s -o /dev/null -w "%{http_code}\n%{time_total}\n"` to just get the status code and timing.

If you want headers + body, `-i` is your friend. `--trace` is overkill unless you're debugging something wild.

Messages In This Thread



Users browsing this thread: 1 Guest(s)