Advertisement
Guest User

Untitled

a guest
Jul 13th, 2016
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. httpreq = {
  2. method: 'POST',
  3. url: '/main/authenticate',
  4. headers: {
  5. 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8;',
  6. 'dataType': 'json'
  7. },
  8. data: {
  9. user: $scope.user,
  10. password: $scope.password
  11. }
  12. }
  13.  
  14. $http(httpreq).success( function(res) {
  15. console.log(res);
  16. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement