4328226dd000bbb8902b8ca93831762458eab912
[m6w6/ext-http] / tests / send_ifrange_001.phpt
1 --TEST--
2 http_send() If-Range
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcgi();
7 ?>
8 --FILE--
9 <?php
10 $_SERVER['HTTP_RANGE'] = 'bytes=0-1';
11 $_SERVER['HTTP_IF_RANGE'] = '"abc"';
12 http_cache_etag('abc');
13 http_send_file(__FILE__);
14 ?>
15 --EXPECTF--
16 Status: 206
17 X-Powered-By: %s
18 Cache-Control: private, must-revalidate, max-age=0
19 ETag: "abc"
20 Accept-Ranges: bytes
21 Content-Range: bytes 0-1/%d
22 Content-Length: 2
23 Content-type: text/html
24
25 <?