projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
- fix win32 build, really, for now
[m6w6/ext-http]
/
tests
/
parse_message_002.phpt
1
--TEST--
2
identity encoding trap
3
--SKIPIF--
4
<?php
5
include 'skip.inc';
6
?>
7
--FILE--
8
<?php
9
echo "-TEST\n";
10
11
$message =
12
"HTTP/1.1 200 Ok\n".
13
"Transfer-Encoding: identity\n".
14
"Content-Length: 3\n".
15
"Content-Type: text/plain\n\n".
16
"Hi!\n\n\n\n";
17
18
print_r(http_parse_message($message));
19
20
echo "Done\n";
21
--EXPECTF--
22
%sTEST
23
stdClass Object
24
(
25
[type] => 2
26
[httpVersion] => 1.1
27
[responseCode] => 200
28
[responseStatus] => Ok
29
[headers] => Array
30
(
31
[Transfer-Encoding] => identity
32
[Content-Length] => 3
33
[Content-Type] => text/plain
34
)
35
36
[body] => Hi!
37
[parentMessage] =>
38
)
39
Done