I am trying to learn angularjs, so today i tryed using resource.
looks like it all went good at syntax and method calling, 

Please open the [FIDDLE](http://jsfiddle.net/7Yd37/13/) first

Initially i tried with $http POST, looks like it worked

```
$http({url: '/register.php', method: "POST",
data: { 'message' : {userName:'ravi'}}});

```

With PHP code:

```
    $data = file_get_contents("php://input");
    $objData = json_decode($data);
    ....
    ....
    //insert stmt to mysql

```

Next, When i tried with $resource, with 

**In registerController** 

```
authProviders.saveUser($scope.newuser); 

```

**In authProviders service :** 

> 
> 
> ```
> return $resource(AppConstants.ServerPath + '/register.php/:registerId',
>             {registerId: '@registerId'},{
>                 saveUser: {
>                     method: 'POST',
>                     params: {   message: {userName:'ravi'} },
>                     isArray: false
>                 }
>             });
> 
> ```
> 
> 

The call is going like get method. 
Can any Body of you please Correct me in these. 

My question question :
When you fill the form and submit which is in fiddle, the URL in the console look like

<http://fiddle.jshell.net/register.php?message=%7B%22userName%22:%22ravi%22%7D>
Which looks like GET method, even through the method type is POST

Thanks in Advance.