# List of all request headers in perl?

**URL:** <https://www.ruby-forum.com/t/list-of-all-request-headers-in-perl/226569>\
**Category:** NGINX\
**Created:** [December 17, 2012, 11:29pm UTC](https://www.ruby-forum.com/t/list-of-all-request-headers-in-perl/226569 "2012-12-17T23:29:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ESWestbrook](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/4af34b/32.png) [@ESWestbrook](https://www.ruby-forum.com/u/ESWestbrook)\
**Post date:** [December 17, 2012, 11:29pm UTC](https://www.ruby-forum.com/t/list-of-all-request-headers-in-perl/226569/1 "2012-12-17T23:29:49Z")

</div>

Hi!

I’m new to the list; so please accept my apologies and do kindly correct  
me if I’ve missed something in my research, or if I’m not complying with  
any particular social custom or etiquette on this list.

I’m using nginx’s integrated perl support, and all is going well so far,  
but I’m missing one critical thing right now: a way to get a list of  
all of the request headers.

I can certainly use $r-\>header\_in() to obtain any given specific header,  
which works well if I know the header in advance – but in my case I  
need to iterate all of the incoming request headers, even (especially,  
actually) headers whose presence I would not have anticipated.

I do see some references to Nginx modules on CPAN, and in at least one  
of those, a $r-\>headers\_in() method… but those modules are not the  
same animal as the built-in “nginx” module, are they.

Please help!

Thanks,  
Eric

---

<div class="post-metadata">

**Author:** ![ESWestbrook](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/4af34b/32.png) [@ESWestbrook](https://www.ruby-forum.com/u/ESWestbrook)\
**Post date:** [December 18, 2012, 3:39am UTC](https://www.ruby-forum.com/t/list-of-all-request-headers-in-perl/226569/2 "2012-12-18T03:39:48Z")

</div>

This may help:

View HTTP Request and Response Header [http://web-sniffer.net/](http://web-sniffer.net/)
