#46559 [Opn->Bgs]: incorrect forcing HTTP protocol version
| From: | jani@php.net | Date: | Wed, 12 Nov 2008 19:07:11 +0000 |
| Subject: | #46559 [Opn->Bgs]: incorrect forcing HTTP protocol version | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-130930@lists.php.net to get a copy of this message | ||
ID: 46559
Updated by: jani@php.net
Reported By: bodik at civ dot zcu dot cz
-Status: Open
+Status: Bogus
Bug Type: HTTP related
Operating System: Linux
PHP Version: 5.2.6
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same.
Thank you for your interest in PHP.
Feel free to comment to that bug. Do not submit new reports about
same issue.
Previous Comments:
------------------------------------------------------------------------
[2008-11-12 19:05:26] bodik at civ dot zcu dot cz
Description:
------------
hi,
I think that #42779 could still not be entirely resolved. On my server
I just found that part of this problem is still present in 5.2.6.
Server still responds with chunked encoding (could in http1.1) on 1.0
request (it must not). I thing it's related with downgrading protocol
and it's features.
on other server with 5.2.0 is responding correctly:
* chunked on 1.1 request
* nonchunked on 1.0 request
I hope I'm submitting theese notes on correct place...
bodik
Reproduce code:
---------------
bodik@bodik:/tmp/cerno$ cat bodik
GET /uredni-deska/ HTTP/1.0
Host: www.mydomain.cz
bodik@bodik:/tmp/cerno$ cat bodik | nc my.hosting.server 80 | head
-n20
HTTP/1.1 200 OK
Date: Wed, 12 Nov 2008 18:53:55 GMT
Server: Apache
X-Powered-By: PHP/5.2.6
Set-Cookie: PHPSESSID=jjtbppo2vs39a0pefi417vgv12; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma: no-cache
Transfer-Encoding: chunked
Content-Type: text/html
ad00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Expected result:
----------------
bodik@bodik:/tmp/cerno$ cat bodik
GET /uredni-deska/ HTTP/1.0
Host: www.mydomain.cz
bodik@bodik:/tmp/cerno$ cat bodik | nc my.server 80 | head -n20
HTTP/1.1 200 OK
Date: Wed, 12 Nov 2008 18:53:55 GMT
Server: Apache
X-Powered-By: PHP/5.2.6
Set-Cookie: PHPSESSID=jjtbppo2vs39a0pefi417vgv12; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma: no-cache
Content-Type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Actual result:
--------------
result is bad behavior with HTTP/1.0 clients/proxies
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46559&edit=1