Restler3:DELETE Body JSON

时间:2013-08-01 17:20:31

标签: php json restler http-delete

我真的不明白我应该做什么来发出DELETE请求。 我想仅在/输出中使用JSON,因此DELETE请求也应该接收JSON。 但这并不能成为目标:

public function delete($request_data = NULL)

$ request_data每次都是零。我正在尝试使用cURL:

curl -X DELETE http://…/API/index.php/test.json -H "Content-Type: application/json" -d '{"key":"test","value":"1337"}'

有人可以向我解释一下吗?

0 个答案:

没有答案