jQuery.ajax POST request converted to GET

ajax, get, jquery, post

Solution

JSONP requests can only be GETs.

Remove `dataType: 'JSONP'`.

Problem

I have the following jQuery code: ``` $.ajax({ url: Url, dataType: 'JSONP', type: 'POST', success: function (data, textStatus, jqXHR) { //callback function here }, error: function (xhr, ajaxOptions, thrownError) { //report error } }); ``` However, when i view this AJAX request in Fiddler, my request has been converted from a `POST` to a `GET`. This is not allowed with the API I'm connecting to, as it must be a `POST` request. Why is this happening?

Original source