projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
- fix parsing chunked encoded messages with odd spaces after the chunk size
[m6w6/ext-http]
/
tests
/
parse_message_001.phpt
1
--TEST--
2
http_parse_message()
3
--SKIPIF--
4
<?php
5
include 'skip.inc';
6
checkurl('www.google.com');
7
skipif(!http_support(HTTP_SUPPORT_REQUESTS), 'need curl support');
8
?>
9
--FILE--
10
<?php
11
echo "-TEST\n";
12
echo http_parse_message(http_get('http://www.google.com'))->body;
13
echo "Done\n";
14
--EXPECTF--
15
%sTEST
16
<HTML>%sThe document has moved%s</HTML>
17
Done