Welcome! Log In Create A New Profile

Advanced

Way to pass all HTTP requests headers verbatim to PHP-FastCGI server?

Alex
February 15, 2014 08:22AM
Hi,

I would require to access via PHP a client's unmodified HTTP request
headers. Using standard PHP variables ($_SERVER etc.) isn't an option
since these store headers in normalized form; but I would need to have
them verbatim, so for instance, "Keep-Alive" versus "keep-alive"
matters.

Running PHP with Apache (whether as CGI or as a module) would allow you
to access the headers via the apache_request_headers() PHP function.

Do you know of a way how I could pass request headers from Nginx to PHP
without having them modified?

Thanks in advance.

Alex


_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Way to pass all HTTP requests headers verbatim to PHP-FastCGI server?

Alex February 15, 2014 08:22AM

Re: Way to pass all HTTP requests headers verbatim to PHP-FastCGI server?

Alex February 15, 2014 11:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 181
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