title: AngularJS $http.post
body: <p>I am trying to do an $http.post and get the response, I tried in several ways but I can't get it working.
  The data I am sending (userData) is an json object.</p>
  
  <pre><code> $http.post(url, userData)
      .success(function(data, status, headers, config) {
          console.log('post success');
          console.log('data');
          console.log(data);
          console.log('status');
          console.log(status);
          console.log('headers');
          console.log(headers);
          console.log('config');
          console.log(config);
      }).error(function(data, status, headers, config) {
          console.log('post error');
          console.log('data');
          console.log(data);
          console.log('status');
          console.log(status);
          console.log('headers');
          console.log(headers);
          console.log('config');
          console.log(config);
      });
  </code></pre>
  
  <p>And I am getting a 404 in status.</p>
  
  <p>Thank you</p>