Topic: How to view the header data in a Net::HTTP.head request

I am using the following code to capture the header from a web service:

response = nil
    Net::HTTP.start('', 80) {|http|
      response = http.head('/test.ashx?cmd=getdomylist')

The response object is valid and I can determine that a content-type is returned by using


puts "Content response is #{response['content-type']}"

But I can't access the set-cookie or figure out how to view the entire header.

Any help would be appreciated.

Last edited by myarro (2011-08-29 17:08:56)