Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. $http({
  2. method :'POST',
  3. url:'http://api.mywebsite.com.localhost/httpTest?callback=JSON_CALLBACK',
  4. data: { username : $scope.userName , password: $scope.password},
  5. headers: {'Content-Type': 'application/json'}
  6. }).success(function (data, status, headers, config) {
  7. console.log('status',status);
  8. console.log('data',status);
  9. console.log('headers',status);
  10. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement