HTTP发布请求中的400错误

时间:2016-07-20 09:06:41

标签: angularjs http ionic-framework

 $scope.isValid = {
    "AppURL" : 'http://10.154.2.38/admin',
      "Pwd":   str.toString(),
      "RandomSalt" : random_encrypt.toString(),
      "UserName" : $scope.loginData.username.toString()       
}


$http({
        method : 'post',
        data: $scope.isValid,
        headers: {
        'Content-Type': undefined,
        'origin' : '*'
        },
        url : $scope.rooturl+"/isValidUser"
}).success(function(response) {
      console.log("Success");
})

这是我的Http请求,但是它提供了400个错误请求,并在获取请求中提供200个确认!

以下是请求JSON正文的示例:

{
    "AppURL":"String content",
    "Pwd":"String content",
    "RandomSalt":"String content",
    "UserName":"String content"
}

0 个答案:

没有答案
相关问题