I never see how is PUT/DELETE request sent.
How to do it in PHP?
I know how to send a GET/POST request with curl:
$ch = curl_ini
For DELETE use curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');
For PUT use curl_setopt($ch, CURLOPT_PUT, true);
An alternative that doesn't rely on cURL being installed would be to use file_get_contents with a custom HTTP stream context.
$result = file_get_contents(
'http://example.com/submit.php',
false,
stream_context_create(array(
'http' => array(
'method' => 'DELETE'
)
))
);
Check out these two articles on doing REST with PHP