header with curl code example
Example 1: curl host header
curl --header "Host: example.com" http://127.0.0.1/
Example 2: curl check response headers
Just use '-ISs' flag options I:(only headers), sS:(silence and no errors)
curl www.example -ISs