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