header passed to fastcgi
Igor Sysoev
is at rambler-co.ru
Wed Jul 29 16:01:57 MSD 2009
On Wed, Jul 29, 2009 at 01:26:51PM +0200, Daniele Melosi wrote:
> Hi all,
>
> I notice that nginx when pass header to fastcgi add "HTTP_" at the
> beginning even if HTTP_ is already present like in the example below:
>
> $ curl "http://127.0.0.1/daniele.php" --header "Host: localhost"
> --header "HTTP_TM_USER_ID: 36" --connect-timeout 3 | grep HTTP_TM_USER_ID
> <tr><td class="e">_SERVER["HTTP_HTTP_TM_USER_ID"]</td><td
> class="v">36</td></tr>
> <tr><td class="e">_ENV["HTTP_HTTP_TM_USER_ID"]</td><td
> class="v">36</td></tr>
>
> Is it possible to avoid this and pass the header "as is" ?
You may set
fastcgi_param HTTP_TM_USER_ID $HTTP_TM_USER_ID;
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list