I’m using curl at the command line on Linux to check if server return head/get method.
curl -I http://www.example.org
However, what should the command look like to display the domain name and the method returned by the server (head or get)?
When I use curl -I and server does not support head method, return value using GET. As a result, I need a command that will check if the server supports head method or not.