This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 820 - Parser doesn't parse php output
Summary: Parser doesn't parse php output
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: 0.6.7
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Terje Bless
QA Contact: qa-dev tracking
URL: http://fobo.ru/newsystem/test.php
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-06 10:36 UTC by Nick Mitin
Modified: 2004-07-06 15:20 UTC (History)
0 users

See Also:


Attachments

Description Nick Mitin 2004-07-06 10:36:48 UTC
while truing to parse the following page <http://fobo.ru/newsystem/test.php>
i've got the following error. 
--------------------
I got the following unexpected response when trying to retrieve
<http://fobo.ru/newsystem/test.php>:

    500 Chunked must be last Transfer-Encoding 'chunked '

Please make sure you have entered the URL correctly. 
-----------------
What is wrong?
Comment 1 Olivier Thereaux 2004-07-06 10:57:24 UTC
Your php code outputs an erroneous ";" after "chunked, hence the HTTP 500 error.
Comment 2 Nick Mitin 2004-07-06 11:07:58 UTC
php code is:

<?php

print "<b>hello</b>";

?>

nothing more...

i've tried another php-interpreter, but error still persists:

I got the following unexpected response when trying to retrieve 
<http://procoder.ru/test.php>:

    500 Can't handle transfer encoding ', chunked'

Please make sure you have entered the URL correctly. 
Comment 3 Terje Bless 2004-07-06 11:20:53 UTC
Here is the response procoder.ru sends to a request:

-- cut here
HTTP/1.1 200 OK
Date: Tue, 06 Jul 2004 15:13:32 GMT
Server: Apache/1.3.27 (Unix) FrontPage/5.0.2.2623 PHP/4.3.2 mod_gzip/1.3.19.1a mod_accounting/
1.0 mod_fastcgi/2.4.0 mod_ssl/2.8.14 OpenSSL/0.9.7b rus/PL30.17
X-Powered-By: PHP/4.3.2
transfer-encoding: , chunked
Connection: close
Content-Type: text/html; charset=windows-1251
Vary: accept-charset, user-agent

18 
<b>hello</b><b>hello</b>
0
-- cut here

The line "transfer-encoding: , chunked" is incorrect. The ", chunked" bit should not have that leading 
comma. Also I note that the capitalization of the header name is unusual, which leads me to believe 
that you have some odd software (module) installed on this server that is botching this header field.

In any case, this is not an issue with the Markup Validator, it's a problem on the server end with 
procoder.ru (and, apparently, fobo.ru).