# Accessing request's raw\_header from within a crontroller?

**URL:** <https://www.ruby-forum.com/t/accessing-requests-raw-header-from-within-a-crontroller/50874>\
**Category:** Ruby\
**Created:** [December 22, 2005, 2:19am UTC](https://www.ruby-forum.com/t/accessing-requests-raw-header-from-within-a-crontroller/50874 "2005-12-22T02:19:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![philpraxis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/77aa72/32.png) [@philpraxis](https://www.ruby-forum.com/u/philpraxis)\
**Post date:** [December 22, 2005, 2:19am UTC](https://www.ruby-forum.com/t/accessing-requests-raw-header-from-within-a-crontroller/50874/1 "2005-12-22T02:19:58Z")

</div>

Is that something possible, i’ve been trying to get to the RAW headers  
sent during a GET request on a page, and couldn’t find where. I’m using  
webrick.

Here are the tries I did to get access to it:

class ZController \< ApplicationController  
def info  
#render :inline =\> request.inspect  
#render :inline =\> raw\_header.inspect  
#render :inline =\> request\_line.inspect  
#render :inline =\> req.inspect  
#render :inline =\> meta.inspect  
#render :inline =\> header.inspect  
#render :inline =\> headers.inspect # --\> response headers  
#render :inline =\> $:.inspect  
#render :inline =\> $\*.inspect  
#render :inline =\> $".inspect  
#render :inline =\> @request.inspect  
render :inline =\> inspect  
end  
end

In the scope of the controller, I can’t find such info. It seems it  
could be very useful but it would somewhat be corrupting the neat  
dependency on the CGI convention. I don’t care too much about this, if  
it requires some tweaking of webrick or RoR, it’s ok, but I would need  
to know what the simplest way.  
Thanks
