- improve response performance
[m6w6/ext-http] / tests / send_ifrange_003.phpt
1 --TEST--
2 http_send() If-Range
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcgi();
7 ?>
8 --ENV--
9 HTTP_RANGE=bytes=0-1
10 HTTP_IF_RANGE="abcd"
11 --FILE--
12 <?php
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 Content-type: text/html
23
24 %s