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