# Log entire header & cookie

**URL:** <https://www.ruby-forum.com/t/log-entire-header-cookie/218068>\
**Category:** NGINX\
**Created:** [March 20, 2012, 10:21am UTC](https://www.ruby-forum.com/t/log-entire-header-cookie/218068 "2012-03-20T10:21:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [March 20, 2012, 10:21am UTC](https://www.ruby-forum.com/t/log-entire-header-cookie/218068/1 "2012-03-20T10:21:56Z")

</div>

Hi,

Is there a variable which stores entire header & cookie in a single  
string ?

I want to log the entire request header. But dont want to specify each  
$http\_HEADER.

Posted at Nginx Forum:

> **[Log entire header & cookie](https://forum.nginx.org/read.php?2,224062,224062#msg-224062)**
>
> Hi, Is there a variable which stores entire header & cookie in a single string ? I want to log the entire request header. But dont want to specify each $http\_HEADER.

---

<div class="post-metadata">

**Author:** ![rishabh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ea5d25/32.png) [@rishabh](https://www.ruby-forum.com/u/rishabh)\
**Post date:** [March 20, 2012, 11:22am UTC](https://www.ruby-forum.com/t/log-entire-header-cookie/218068/2 "2012-03-20T11:22:18Z")

</div>

Hello!

On Tue, Mar 20, 2012 at 05:21:28AM -0400, rishabh wrote:

> Hi,
> 
> Is there a variable which stores entire header & cookie in a single  
> string ?
> 
> I want to log the entire request header. But dont want to specify each  
> $http\_HEADER.

No, there is no such variable. It would be fine to add one  
though, as it looks like something useful in some cases.

Maxim D.
