Read the value of a header?

Igor Sysoev is at
Mon Nov 19 22:58:17 MSK 2007

On Mon, Nov 19, 2007 at 01:49:06PM -0600, Fred Palmer wrote:

> Is it possible to read the value of a request's header and then put it into
> a variable of some kind?  I want to be able to log a special value in a
> header.

A value of the client header "Some-Header" is available
as the $http_some_header variable.

Igor Sysoev

More information about the nginx mailing list