I have a standard javascript ajax call where I\'m setting the data: to json data.
$.ajax({
type: \"POST\",
url: BaseUrl + \"User/Login\",
//url:
I think problem with your code is in the line where you set data: '{....}'
.
It should be in json format in order to be passed properly (though it also could be in string format but you'll need to parse it on the server side)
The code below should be working right:
$.ajax({
type: "post",
url: BaseUrl + "User/Login",
data: {"apiKey":"c7089786-7e3a-462c-a620-d85031f0c826","appIDGiven":"200","userName":"matt2","password":"pass"},
success: function(data){
console.log(data);
},
error: function(request){
console.log(request);
}
});
On the server side try: $_POST['apiKey']
$_POST['appIDGiven']
and so on.