List HTTP methods:
curl -i -X OPTIONS http://10.10.10.57
-i flag to include protocol response headers in the output.
Grab HTTP Server Banners:
curl --head http://10.10.10.63
--head flag to only grab headers of the site.
Grab robots.txt file:
curl https://www.bbc.co.uk/robots.txt
If you want to include the headers in this request, apply the -i
flag. (Shown in screenshot above.)