curl header fetch code example
Example 1: curl get example
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://hostname/resource
Example 2: curl check response headers
Just use '-ISs' flag options I:(only headers), sS:(silence and no errors)
curl www.example -ISs