- changelog, new test files
[m6w6/ext-http] / tests / send_file_005.phpt
1 --TEST--
2 http_send_file() multiple ranges
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcgi();
7 ?>
8 --ENV--
9 HTTP_RANGE=bytes=0-3, 4-5,9-11
10 --FILE--
11 <?php
12 http_send_content_type('text/plain');
13 http_send_file('data.txt');
14 ?>
15 --EXPECTF--
16 Status: 206
17 X-Powered-By: PHP/%s
18 Accept-Ranges: bytes
19 Content-Type: multipart/byteranges; boundary=%d.%d
20
21
22 --%d.%d
23 Content-Type: text/plain
24 Content-Range: bytes 0-3/1010
25
26 0123
27 --%d.%d
28 Content-Type: text/plain
29 Content-Range: bytes 4-5/1010
30
31 45
32 --%d.%d
33 Content-Type: text/plain
34 Content-Range: bytes 9-11/1010
35
36 901
37 --%d.%d--