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 "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" ?
Best Regards
Daniele
More information about the nginx
mailing list