Hey everyone,
So, I’ve been messing around with curl and trying to figure out how to curl show response headers in my requests. I know it’s probably something simple, but I’m kinda stuck lol.
I tried using `-I` but that only gives me the headers, not the full response. I want both the headers *and* the body, ya know?
Turns out, you can use `-i` (lowercase) to curl show response headers along with the body. Like this:
```bash
curl -i https://example.com
```
Works like a charm!
Also, if you *only* want the headers, `-I` (uppercase) is the way to go.
Hope this helps someone else who’s scratching their head like I was. Cheers! 🍻
P.S. If there’s a better way, lmk! Always down to learn more.
So, I’ve been messing around with curl and trying to figure out how to curl show response headers in my requests. I know it’s probably something simple, but I’m kinda stuck lol.
I tried using `-I` but that only gives me the headers, not the full response. I want both the headers *and* the body, ya know?
Turns out, you can use `-i` (lowercase) to curl show response headers along with the body. Like this:
```bash
curl -i https://example.com
```
Works like a charm!
Also, if you *only* want the headers, `-I` (uppercase) is the way to go.
Hope this helps someone else who’s scratching their head like I was. Cheers! 🍻
P.S. If there’s a better way, lmk! Always down to learn more.
