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

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

My Apologies - I should have looked more closely. Looks like the header
data in the $_SERVER variable is AS IS; no modification taking place.

Best,
Alex

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs