I have an app that relies on sending all-caps-with-underscores HTTP headers along with a request.
Starting with Apache 2.4,
Headers containing invalid characters (including underscores) are now silently dropped
This page suggests there are settings you can change that would allow legacy HTTP headers that aren't stripped (i.e., if they're set in CURL, then they would show up in the $_SERVER array in PHP) but it doesn't say how. I tried adding the following to my HTACCESS file,
SetEnvIfNoCase ^Accept.Encoding$ ^(.*)$ fix_accept_encoding=$1 RequestHeader set Accept-Encoding %{fix_accept_encoding}e env=fix_accept_encoding
but it didn't seem to help. Has anyone else experienced this when moving from Apache 2.2 to 2.4?