title: Is there a way to access the complete list of headers from within .htacces?
body: <p>I am able to access arbitrary <em>specific</em> headers from within .htaccess, e.g. the following snippet sets a server environment variable <code>INFO_COOKIE</code> directly fetched from the HTTP headers using mod_rewrite.</p>
  
  <pre><code>RewriteEngine on
  RewriteRule .* - [E=INFO_COOKIE:%{HTTP:cookie}]
  </code></pre>
  
  <p>I tried if I could get the complete list of headers by</p>
  
  <pre><code>RewriteEngine on
  RewriteRule .* - [E=INFO_HEADERS:%{HTTP}]
  </code></pre>
  
  <p>however, I get an empty string.</p>
  
  <p>Actually the HTTP headers are nothing more than plain text lines separated by line feeds from each other. The delimiter between headers and body is a blank line (double line feed). Technically it should be possible to get the raw headers section without any problems.</p>
  
  <p>Is there any possibility to access the complete headers list / raw section from within the .htaccess file on an Apache server? Since I do have system root access to the server, the installation of any additional Apache modules would be a reasonable solution.</p>