- added missing http_request() function stub
[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 var_dump(str_repeat("abc", 6000) === http_parse_message(http_put_data("http://dev.iworks.at/.print_put.php5", str_repeat("abc", 6000/* > CURLBUF_SIZE */)))->body);
13
14 echo "Done\n";
15 ?>
16 --EXPECTF--
17 %sTEST
18 bool(true)
19 Done