デフォルトで、JSONを投げる仕様なので、
以下のようにデフォルトをプレインに戻す対応策をすると出来ます。
lang
1var module = angular.module('myApp');
2
3// Defaultの挙動を
4module.config(function ($httpProvider) {
5 $httpProvider.defaults.transformRequest = function(data){
6 if (data === undefined) {
7 return data;
8 }
9 return $.param(data);
10 }
11});
12
13$http({
14 method : 'POST',
15 url : '/testURL',
16 headers: { 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' },
17 data: parameter
18 }).success(function(data, status, headers, config) {
19 //成功
20 }).error(function(data, status, headers, config) {
21 //失敗
22});
JSONで投げるリクエストと混じっている場合は、transformRequest関数以下を
個々に渡すといいでしょう。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。