title: Sending a POST request with Angularjs and get parameters in a Flask backend
body: <p>I have this code in AngularJS:</p>
  
  <pre><code>myApp.controller('LoginCtrl', function($scope, $http){
    $scope.formData = {};
  
    $scope.doLogin = function(url, pass){
      $http({
        url: url,
        method: "POST",
        data: $.param($scope.formData)
      }).success(function(data) {
        console.log(data)
      });
    }
  });
  </code></pre>
  
  <p>And in the beckend (Flask), I have this:</p>
  
  <pre><code>def user_authenticate():
      login = request.args.get('login')
      password = request.args.get('password')
      print login, password
  </code></pre>
  
  <p>The problem is that request.args come empty.</p>