curl でヘッダだけ表示する
-D
の引数に出力ファイルを指定する必要がある。
下は、screen
で2番目のコンソールを使っていた時の指定。
curl -s -D /dev/pty2 -o /dev/null https://example.jp/
Author And Source
この問題について(curl でヘッダだけ表示する), 我々は、より多くの情報をここで見つけました https://qiita.com/mo12ino/items/aa046bd778989e6e8de1著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .