SyntaxFix
Write A Post
Hire A Developer
Questions
Modify the default headers:
$http.defaults.headers.post["Content-Type"] = "application/x-www-form-urlencoded;charset=utf-8";
Then use JQuery's $.param method:
$.param
var payload = $.param({key: value}); $http.post(targetURL, payload);