- changelog
[m6w6/ext-http] / tests / parse_message_005.phpt
1 --TEST--
2 http_parse_message() content range header w/(o) =
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 ?>
7 --FILE--
8 <?php
9 echo "-TEST\n";
10 print_r(http_parse_message(
11 "
12 HTTP/1.1 206
13 Server: Funky/1.0
14 Content-Range: bytes: 0-0/100
15
16 1
17
18 HTTP/1.1 206
19 Server: Funky/1.0
20 Content-Range: bytes 0-0/100
21
22 1
23
24 "
25 ));
26 echo "Done\n";
27 ?>
28 --EXPECTF--
29 %sTEST
30 stdClass Object
31 (
32 [type] => 2
33 [httpVersion] => 1.1
34 [responseCode] => 206
35 [responseStatus] =>
36 [headers] => Array
37 (
38 [Server] => Funky/1.0
39 [Content-Range] => bytes 0-0/100
40 )
41
42 [body] => 1
43 [parentMessage] => stdClass Object
44 (
45 [type] => 2
46 [httpVersion] => 1.1
47 [responseCode] => 206
48 [responseStatus] =>
49 [headers] => Array
50 (
51 [Server] => Funky/1.0
52 [Content-Range] => bytes: 0-0/100
53 )
54
55 [body] => 1
56 [parentMessage] =>
57 )
58
59 )
60 Done