- changelog
[m6w6/ext-http] / tests / request_put_data.phpt
1 --TEST--
2 http_put_data()
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 skipif(!http_support(HTTP_SUPPORT_REQUESTS), "need request support");
7 ?>
8 --FILE--
9 <?php
10 echo "-TEST\n";
11
12 $data = str_repeat("abc", 6000/* > CURLBUF_SIZE */);
13 $resp = http_put_data("http://dev.iworks.at/ext-http/.print_put.php5", $data);
14 $mess = http_parse_message($resp);
15 var_dump($data === $mess->body);
16
17 echo "Done\n";
18 ?>
19 --EXPECTF--
20 %sTEST
21 bool(true)
22 Done