Changes AJAX request type from GET to POST