From e45e538cfdbe5ae14339c8152ebd86257852ca89 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Tue, 19 Mar 2013 16:15:23 +0700 Subject: [PATCH] Now we have a working PUT example Signed-off-by: Willy Sudiarto Raharjo --- ati-ti/rest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ati-ti/rest.php b/ati-ti/rest.php index 4551aed..9f8fcfd 100644 --- a/ati-ti/rest.php +++ b/ati-ti/rest.php @@ -48,10 +48,9 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") $id = $_POST['idQuoteChange']; $author = $_POST['authorQuoteChange']; $quote = $_POST['quoteChange']; + $content = "id=" . $id . "&author=" . $author . ""e=" . $quote; $result = new HttpRequest("http://lecturer.ukdw.ac.id/yuan/labs/quotes/", HttpRequest::METH_PUT); - $result->setPutData($id); - $result->setPutData($author); - $result->setPutData($quote); + $result->setPutData($content); $put = 1; }