title: AngularJS $http.post method passing null arguments to JAX-RS API
body: <p>I'm trying to pass some arguments with AngularJS post method: </p>
  
  <pre><code>function Create(email, password, phoneNumber) {
          return $http.post('resources/users/register', {email: email, password: password, phoneNumber: phoneNumber}).then(handleSuccess, handleError('Error creating user'));
      }
  </code></pre>
  
  <p>to my JAX-RS method : </p>
  
  <pre><code>@POST
  @Produces(MediaType.APPLICATION_JSON )
  @Path("/register")
  public Response register(@FormParam("email") String email, @FormParam("password") String password,
                           @FormParam("phoneNumber") String phoneNumber) {
  </code></pre>
  
  <p>I have loggers before $http.post and on the very beggining of register method, when arguments on the web side contains info, then every argument on server is null -> I was trying to use curl method - everything was fine!</p>
  
  <p>Anyone have an idea?</p>