Stepin2
Stepin2

Reputation: 49

wget command fulfill http method HEAD

I know that wget command can fulfill the post and get request, but how do I fulfill the HEAD method when I only want to the head part of the document using wget command?

Upvotes: 0

Views: 2606

Answers (1)

Mahmoud
Mahmoud

Reputation: 81

wget -S --spider http://www.example.com

or you can use curl:

curl -I http://www.example.com

Upvotes: 2

Related Questions