projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
move (re)setting of request methods to http_request_defaults()
[m6w6/ext-http]
/
tests
/
send_data_003.phpt
1
--TEST--
2
http_send_data() NUM-NIL range
3
--SKIPIF--
4
<?php
5
include 'skip.inc';
6
checkcgi();
7
?>
8
--FILE--
9
<?php
10
$_SERVER['HTTP_RANGE'] = 'bytes=5981-';
11
http_send_content_type('text/plain');
12
http_send_data(str_repeat('123abc', 1000));
13
?>
14
--EXPECTF--
15
Status: 206
16
X-Powered-By: PHP/%s
17
Content-Type: text/plain
18
Accept-Ranges: bytes
19
Content-Range: bytes 5981-5999/6000
20
Content-Length: 19
21
22
c123abc123abc123abc