Merge pull request #74 from gbarosio/readme
[m6w6/ext-http] / tests / envresponse003.phpt
1 --TEST--
2 env response ranges
3 --SKIPIF--
4 <?php include "skipif.inc"; ?>
5 --ENV--
6 HTTP_RANGE=bytes=2-4
7 --GET--
8 a=b
9 --FILE--
10 <?php
11
12 $r = new http\Env\Response;
13 $r->setContentType("text/plain");
14 $r->setContentDisposition(
15 array("attachment" => array(array("filename" => basename(__FILE__))))
16 );
17 $r->setBody(new http\Message\Body(fopen(__FILE__, "rb")));
18 $r->send();
19
20 ?>
21 --EXPECTHEADERS--
22 Content-Range: bytes 2-4/248
23 --EXPECTF--
24 php