- fixup tests
[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 checkmin(5);
8 ?>
9 --ENV--
10 HTTP_RANGE=bytes=0-1
11 HTTP_IF_RANGE="abc"
12 --FILE--
13 <?php
14 http_cache_etag('abc');
15 http_send_file(__FILE__);
16 ?>
17 --EXPECTF--
18 Status: 206
19 X-Powered-By: %s
20 Cache-Control: private, must-revalidate, max-age=0
21 ETag: "abc"
22 Accept-Ranges: bytes
23 Content-Range: bytes 0-1/%d
24 Content-Length: 2
25 Content-type: text/html
26
27 <?