curl https header 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 pass a header
curl -H "Accept-Charset: utf-8" -H "Content-Type: application/x-www-form-urlencoded" http://www.some-domain.com