Welcome! Log In Create A New Profile

Advanced

Re: List of all request headers in perl?

Harold Sinclair
December 18, 2012 09:12AM
You're right the Nginx modules on CPAN are not related. Sorry I don't have
a setup in front of me but isn't $r->args some data structure that may
contain the request headers? Can you iterate thru it or incorporate
Data::Dumper to see what it contains? Check the source code of the embedded
perl module to see what is implemented?


On Mon, Dec 17, 2012 at 10:48 PM, E. Westbrook <nginx@westbrook.com> wrote:

> I'm very confused... there's not an "$r" to be seen at that link.
> Perhaps I asked the original question poorly, or in the wrong place?
>
> Thanks again,
> Eric
>
> On Mon, Dec 17, 2012 at 7:38 PM, Bob S. <farseas@gmail.com><farseas@gmail.com>wrote:
>
> This may help:
>
> View HTTP Request and Response Header
>
> On Mon, Dec 17, 2012 at 5:29 PM, E. Westbrook <nginx@westbrook.com><nginx@westbrook.com>wrote:
>
> 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
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

List of all request headers in perl?

E. Westbrook December 17, 2012 05:30PM

Re: List of all request headers in perl?

Bob S. December 17, 2012 09:40PM

Re: List of all request headers in perl?

E. Westbrook December 17, 2012 10:50PM

Re: List of all request headers in perl?

Harold Sinclair December 18, 2012 09:12AM

Re: List of all request headers in perl?

E. Westbrook December 18, 2012 12:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 159
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready