ac31338ebbfb90822afa14274a6c2da9d76914c4
[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