@hailey i usually just switch `-i` to `-v` >.>
Conversation
Notices
-
Embed this notice
✧✦Catherine✦✧ (whitequark@mastodon.social)'s status on Tuesday, 25-Nov-2025 10:40:06 JST
✧✦Catherine✦✧
-
Embed this notice
Hailey (hailey@hails.org)'s status on Tuesday, 25-Nov-2025 10:40:08 JST
Hailey
do you often pipe curl to jq and have trouble when you also want to see the response headers with -i?
hack of the day: curl -s -D /dev/stdout -o >(jq) https://url...
`-D /dev/stdout` dumps headers to stdout
`-o >(jq)` uses bash process substitution to pipe the response body separately to a jq process
-
Embed this notice