My post method is something like this:
public HttpResponseMessage AddUser(User user)
{
UserManager userManager = new UserManager();
t
Since .success()
is deprecated in $http and has been replaced with .then() the update to this answer is to call header
directly on the response that is injected into the promise.
$http.post('http://localhost:30028/api/values/adduser', user)
.then(function (response) {
alert(angular.toJson(response.headers));
//or
alert(response.headers('Location'));
});