logoalt Hacker News

stabblestoday at 6:52 AM2 repliesview on HN

Would be nice if `curl` had something to dump headers to a third file descriptor while outputting the response on stdout.


Replies

homebrewertoday at 8:38 AM

This should work?

  curl --dump-header /dev/fd/xxx https://google.com
or

  mkfifo headers.out
  curl --dump-header headers.out https://google.com
unless I'm misunderstanding you.
show 1 reply