curl return response headers code example
Example 1: curl pass a header
curl -H "Accept-Charset: utf-8" -H "Content-Type: application/x-www-form-urlencoded" http://www.some-domain.com
Example 2: curl check response headers
Just use '-ISs' flag options I:(only headers), sS:(silence and no errors)
curl www.example -ISs