curl でヘッダだけ表示する


-D の引数に出力ファイルを指定する必要がある。
下は、screen で2番目のコンソールを使っていた時の指定。

curl -s -D /dev/pty2 -o /dev/null https://example.jp/