2 env response stream ranges
4 <?php include "skipif.inc"; ?>
12 $r = new http\Env\Response;
13 $r->setContentType("text/plain");
14 $r->setContentDisposition(
15 array("attachment" => array(array("filename" => basename(__FILE__))))
17 $r->setBody(new http\Message\Body(fopen(__FILE__, "rb")));
20 var_dump(stream_get_contents($f));
23 string(%i) "HTTP/1.1 206 Partial Content%c
24 Accept-Ranges: bytes%c
25 X-Powered-By: PHP/%s%c
26 Content-Type: text/plain%c
27 Content-Range: bytes 2-4/311%c
28 Transfer-Encoding: chunked%c