mod_proxy_fcgi doesn't send cgi CONTENT_LENGTH variable when the client request used Transfer-Encoding:chunked
Issue
- Apache Bug 57087
-
mod_proxy_fcgi doesn't send cgi CONTENT_LENGTH variable when the client request used Transfer-Encoding:chunked
-
Steps to Reproduce:
- Install httpd, php-common and php-fpm
- Make a test php file
cat << 'EOF' > /var/www/html/test.php
<?php
echo $_SERVER['CONTENT_LENGTH']."\n";
?>
EOF
- Run curl commands
$ curl -X POST -d "blablablabla" http://$(hostname)/test.php
12
$ curl -X POST -H "Transfer-Encoding: chunked" -d "blablablabla" http://$(hostname)/test.php
$
Environment
- Red Hat Enterprise Linux 8
- httpd
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.