webapps

diff ProgressEvents/tests/submissions/Samsung/resources/no-content-length.php @ 970:ec95ece1bbf8

add test cases for 4.1 and 4.4
author Jungkee Song <jungkee.song@samsung.com>
date Fri, 18 Jan 2013 21:21:04 +0900
parents
children b47697234d1a
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ProgressEvents/tests/submissions/Samsung/resources/no-content-length.php	Fri Jan 18 21:21:04 2013 +0900
     1.3 @@ -0,0 +1,22 @@
     1.4 +<?php
     1.5 +    header('Content-Encoding', 'chunked');
     1.6 +    header('Transfer-Encoding', 'chunked');
     1.7 +    header('Content-Type', 'text/html');
     1.8 +    header('Connection', 'keep-alive');
     1.9 +
    1.10 +    ob_flush();
    1.11 +    flush();
    1.12 +
    1.13 +    for ($i = 0; $i < 100000; $i++) {
    1.14 +        $string = "W3C Progress Events Test";
    1.15 +        echo strlen($string)."\r\n"; // this is the length
    1.16 +        echo $string."\r\n"; // this is the date
    1.17 +        echo "\r\n"; // newline between chunks
    1.18 +        ob_flush(); // rinse and repeat
    1.19 +        flush();
    1.20 +    } 
    1.21 +    echo  "\r\n"; // send final empty line
    1.22 +    ob_flush();
    1.23 +    flush();
    1.24 +?>
    1.25 +
Set up and maintained by W3C Systems Team, please report bugs to sysreq@w3.org.

W3C would like to thank Microsoft who donated the server that allows us to run this service.