projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
- release 1.0.0RC1
[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
--FILE--
9
<?php
10
$_SERVER['HTTP_RANGE'] = 'bytes=0-1';
11
$_SERVER['HTTP_IF_RANGE'] = '"abcd"';
12
http_cache_etag('abc');
13
http_send_file(__FILE__);
14
?>
15
--EXPECTF--
16
X-Powered-By: %s
17
Cache-Control: private, must-revalidate, max-age=0
18
ETag: "abc"
19
Accept-Ranges: bytes
20
Content-Length: %d
21
Content-type: text/html
22
23
%s