using current_session
and viewing the @headers hash
Rails 3: headers
@headers=
{"HTTP_X_FORWARDED_FOR"=>"192.168.0.1",
"HTTP_USER_AGENT"=>
"Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.308.0 Safari/532.9"},
@headers=
{"HTTP_X_FORWARDED_FOR"=>"192.168.0.1",
"HTTP_USER_AGENT"=>
"Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.308.0 Safari/532.9"},
@headers={},
@headers={},
@headers=
{"HTTP_X_FORWARDED_FOR"=>"192.168.0.1",
"HTTP_USER_AGENT"=>
"Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.308.0 Safari/532.9"},
@headers={},
@headers={},
@headers={},
@headers={},
@headers={},
@headers={},
Rails 4: headers 1)
@headers=
{"HTTP_X_FORWARDED_FOR"=>"192.168.0.1",
"HTTP_USER_AGENT"=>
"Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.308.0 Safari/532.9"},
@headers=
{"HTTP_X_FORWARDED_FOR"=>"192.168.0.1",
"HTTP_USER_AGENT"=>
"Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.308.0 Safari/532.9"},
@headers={},
- ERROR
@headers={},
@headers=
{"HTTP_X_FORWARDED_FOR"=>"192.168.0.1",
"HTTP_USER_AGENT"=>
"Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.308.0 Safari/532.9"},
@headers={},
- ERROR
@headers={"Accept-Celebration-Events"=>"all"},
- ERROR
@headers={},
- ERROR
@headers={},
- ERROR
@headers={},
@headers={},