projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
This commit was manufactured by cvs2svn to create branch 'R_1_6'.
[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
$m = http_parse_message(http_get('http://www.google.com'));
13
echo $m->body;
14
echo "Done\n";
15
--EXPECTF--
16
%aTEST
17
<HTML>%aThe document has moved%a</HTML>
18
Done