I have another question similar to a question I asked here: JS Ajax calling PHP and getting ajax call data
However this time I'm dealing with the PUT verb. I was reading to get put data in php should use the following:
file_get_contents("php://input")
Resource: http://www.lornajane.net/posts/2008/accessing-incoming-put-data-from-php
However for put this dosen't seem to be working. I feel like it might have something to do with IIS 7 possibly removing the data?.. I had webDav installed and had to remove that to get the put verb to resolve was wondering is there something else in IIS that could be preventing the data from being parsed at the server level?
My ajax request looks like the following
var data = '{"storyId":"2","storyName":"a Changed Story.","authorId":"5", "published":"1"}';
$.ajax({
type: "PUT",
url: BaseUrl + "Story/2",
data: data,
success: function(data){
console.log(data);
},
error: function(request){
console.log(request);
},
});