From 9b19a8c906d6721ba4e5bfd784a38fae32111526 Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Fri, 11 Apr 2014 10:38:34 -0700 Subject: [PATCH] Fix #41: Add PUT example --- examples/put.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 examples/put.php diff --git a/examples/put.php b/examples/put.php new file mode 100644 index 0000000..f06e14c --- /dev/null +++ b/examples/put.php @@ -0,0 +1,14 @@ +put('http://httpbin.org/put', array( + 'id' => 1, + 'first_name' => 'Zach', + 'last_name' => 'Borboa', +)); + +echo 'Data server received via PUT:' . "\n"; +var_dump($curl->response->form);