I'm new to Hybrid application dev, using Appgyver Supersonic
I'm trying to make a http request for user to login, below is the code:
$http.post({
url: 'http://www.somesite.com/check.login.php',
data: $scope.logd,
crossDomain: true,
cache: false,
headers : {'Content-Type': 'application/x-www-form-urlencoded'}
}).success(function(data, status, headers, config) {
// do something
}).error(function (data, status, headers, config) {
// do something
});
In response I get data as:
<html><head><meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0'></head><body><h1>404 Not Found</h1>/app/login/[object Object] was not found.</body></html>
response status is 200,
I'm also new to angularjs, Can you please let me know what could be the issue here and the possible actions that can be taken?