- bugs
[m6w6/ext-http] / tests / split_response_001.phpt
1 --TEST--
2 http_split_response()
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 ?>
7 --FILE--
8 <?php
9 $data = "HTTP/1.1 200 Ok\r\nContent-Type: text/plain\r\nContent-Language: de-AT\r\nDate: Sat, 22 Jan 2005 18:10:02 GMT\r\n\r\nHallo Du!";
10 var_export(http_split_response($data));
11 echo "\nDone\n";
12 ?>
13 --EXPECTF--
14 Content-type: text/html
15 X-Powered-By: PHP/%s
16
17 array (
18 0 =>
19 array (
20 'Response Status' => '200 Ok',
21 'Content-Type' => 'text/plain',
22 'Content-Language' => 'de-AT',
23 'Date' => 'Sat, 22 Jan 2005 18:10:02 GMT',
24 ),
25 1 => 'Hallo Du!',
26 )
27 Done
28