$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"
}