LoginSignup
0
0

More than 3 years have passed since last update.

curl, wget で Response Header だけ取得する

Posted at

用途

インターネットへの疎通確認をしたい時など、
レスポンスヘッダーだけ欲しい時に。

curl

curl --head https://www.google.com

wget

wget -q -S -O - https://www.google.com > /dev/null

-q, --quiet : quiet (no output)
-S, --server-response : print server response
-O, --output-document=FILE : write documents to FILE

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0