How can I use curl to show response headers in my requests?

22 Replies, 1419 Views

For anyone who’s curious, you can also use `-D -` to dump headers to stdout and still get the body. Like this:
```bash
curl -D - https://example.com
```
It’s another way to curl show response headers without losing the body.

Messages In This Thread



Users browsing this thread: 1 Guest(s)