osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug 57087] mod_proxy_fcgi doesn't send cgi CONTENT_LENGTH variable when the client request used Transfer-Encoding:chunked


https://bz.apache.org/bugzilla/show_bug.cgi?id=57087

--- Comment #6 from Luca Toscano <toscano.luca@xxxxxxxxx> ---
Hi Rainer,

I can repro with this simple php script:

<?php
$request = new http\Env\Request();
$request->getBody();
echo($request);
echo("\n");
?>

1) curl -k https://localhost/receiveChunk.php --header "Pragma: no-cache"
--header -X POST -d "blablablabla"

POST /receiveChunk.php HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 12
Pragma: no-cache
Accept: */*
User-Agent: curl/7.52.1
Host: localhost

blablablabla

2) curl -k https://localhost/receiveChunk.php --header "Pragma: no-cache"
--header "Transfer-Encoding: chunked" -X POST -d "blablablabla"

POST /receiveChunk.php HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Transfer-Encoding: chunked
Pragma: no-cache
Accept: */*
User-Agent: curl/7.52.1
Host: localhost


I also added "SetEnv proxy-sendctl" to my vhost config but didn't observe any
difference.

With a bit more detail, I also added LogLevel proxy_fcgi:trace8 and spotted the
following log only in the first case:

[Sat Sep 01 17:04:29.816361 2018] [proxy_fcgi:trace8] [pid 3968:tid
140084712040192] mod_proxy_fcgi.c(385): [client ::1:34478] AH01062: sending env
var 'CONTENT_LENGTH' value '12'

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: bugs-help@xxxxxxxxxxxxxxxx