- fix win32 build, really, for now
[m6w6/ext-http] / tests / send_data_006.phpt
1 --TEST--
2 http_send_data() 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 $_SERVER['HTTP_RANGE'] = 'bytes=0-3, 4-5,9-11';
13 http_send_content_type('text/plain');
14 http_send_data(str_repeat('123abc', 1000));
15 ?>
16 --EXPECTF--
17 Status: 206
18 X-Powered-By: PHP/%s
19 Accept-Ranges: bytes
20 Content-Type: multipart/byteranges; boundary=%d.%d
21
22
23 --%d.%d
24 Content-Type: text/plain
25 Content-Range: bytes 0-3/6000
26
27 123a
28 --%d.%d
29 Content-Type: text/plain
30 Content-Range: bytes 4-5/6000
31
32 bc
33 --%d.%d
34 Content-Type: text/plain
35 Content-Range: bytes 9-11/6000
36
37 abc
38 --%d.%d--