X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Frequest_put_data.phpt;h=a2887fd20f07c9222577d052c43ad581c7d13847;hb=4b1541a820a6b271e45b245dc27e9005252c72b0;hp=be90a82d780c081354d994d1bd4c9931119363d5;hpb=65cf6ca09489451473d9aba81f22895058403ca8;p=m6w6%2Fext-http diff --git a/tests/request_put_data.phpt b/tests/request_put_data.phpt index be90a82..a2887fd 100644 --- a/tests/request_put_data.phpt +++ b/tests/request_put_data.phpt @@ -9,11 +9,14 @@ skipif(!http_support(HTTP_SUPPORT_REQUESTS), "need request support"); CURLBUF_SIZE */)))->body); +$data = str_repeat("abc", 6000/* > CURLBUF_SIZE */); +$resp = http_put_data("http://dev.iworks.at/ext-http/.print_put.php5", $data); +$mess = http_parse_message($resp); +var_dump($data === $mess->body); echo "Done\n"; ?> --EXPECTF-- -%sTEST +%aTEST bool(true) Done