- improve response performance
[m6w6/ext-http] / tests / send_file_001.phpt
1 --TEST--
2 http_send_file()
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcgi();
7 checkmax(5.0);
8 ?>
9 --FILE--
10 <?php
11 http_send_file('data.txt');
12 ?>
13 --EXPECTF--
14 Content-type: %s
15 X-Powered-By: PHP/%s
16 Accept-Ranges: bytes
17 Content-Length: 1010
18
19 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
20 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
21 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
22 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
23 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
24 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
25 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
26 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
27 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
28 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789