[LINUX] Get only Response Header with curl and wget

Use

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

Get only Response Header with curl and wget
Login with PycURL and receive response
Get git branch name and tag name with python
Ten Puzzle-Make 10 with only 4 numbers and 4 arithmetic operations
Get Gmail subject and body with Python and Gmail API
Get temperature and humidity with DHT11 and Raspberry Pi
If you get lost with HTTP redirects 301 and 302
Extract "current date only" and "current date and time" with python datetime.
Get comments and subscribers with the YouTube Data API
Get mail from Gmail and label it with Python3
[Note] I can't connect with wget, but I can connect with curl
Get twitter tweets, followers, followers, likes, with urllib and beautifulSoup
[Python] Get user information and article information with Qiita API