Extending Chef from Opscode with header params for http_request
Posted by Edmund Haselwanter on Friday, July 31, 2009
Added support for custom header options in chef for the http_request
Opscode Chef Ticket
Resolved on Github
An example using a custom "Host" header property:
1 2 http_request "localhost_with_host_header" do 3 url "localhost" 4 message "my request" 5 headers Hash[:Host => "my-real.hostname.com"] 6 endThe new parameter is headers which takes a Hash and will add all values.to_s to the request header.