That’s a neat trick! For curl print location header, I sometimes use `-D -` to dump headers to stdout and then filter with `grep`. It’s a bit more manual but works when you need to see all headers.
```bash
curl -s -D - -o /dev/null http://example.com | grep -i location
```
Anyone else do it this way?
```bash
curl -s -D - -o /dev/null http://example.com | grep -i location
```
Anyone else do it this way?
