The following code triggers a GET instead of a POST HTTP request.
function AddToDatabase() {
this.url = \'./api/add\';
}
AddToDatabase.prototype.postData
I had this issue, and it turned out to be a URL Rewrite module in IIS.
I'm using ASP.NET MVC and WebAPI. I created rule to force lowercase URLs so social networks don't view the same URL as two different pages.
For example:
"http://url.com/View/Something/123GuidIdSomething"
vs
"http://url.com/view/something/123guididsomething"
This however, was somehow messing with my ajax requests. I disabled the rule and the problem was resolved.