header passed to fastcgi

Daniele Melosi ml at melosi.it
Wed Jul 29 15:26:51 MSD 2009

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 "" --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 
<tr><td class="e">_ENV["HTTP_HTTP_TM_USER_ID"]</td><td 

Is it possible to avoid this and pass the header "as is" ?

Best Regards


More information about the nginx mailing list