Use $http service instead of jQuery for POST request.