Now we have a working PUT example

Signed-off-by: Willy Sudiarto Raharjo <willysr@gmail.com>
This commit is contained in:
Willy Sudiarto Raharjo
2013-03-19 16:15:23 +07:00
parent 61e013766a
commit e45e538cfd
+2 -3
View File
@@ -48,10 +48,9 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
$id = $_POST['idQuoteChange'];
$author = $_POST['authorQuoteChange'];
$quote = $_POST['quoteChange'];
$content = "id=" . $id . "&author=" . $author . "&quote=" . $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;
}