When you want to check communication to the Internet, etc. When you want only the response header.
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
Recommended Posts