Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



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.

Ah yeah, `/dev/fd/xxx` works :) somehow thought that was Linux only.

(Principal Skinner voice) Ah, it's a Bash expression!



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: