I am trying to use Jquery.ajax() with PUT and DELETE methods and sending some data along with the request but in the php side when printing the request it comes empty.
$.ajax({
url: 'ajax.php',
type: 'DELETE',
data: {some:'some',data:'data'},
}
In PHP:
print_r($_REQUEST);
and I get an empty array. I don't know if it is a jquery or php thing or simply I can't send data that way. I know DELETE method is meant to be used without sending additional data but here every ajax request is sent to the same script.