I want to make an `$http` request **making use of the configuration object instead of the quick method**. The request is of 'GET' method and the url targets a local `json` file.

The code looks more or less like:

```
$http.get({
    method: 'GET',
    url: 'data.json'
  }).then(function(res) {
    $scope.data = res;
  }, function(res) {
    console.log(res);
  })

```

The error I get is : 

> 
> Error: [$http:badreq]
> 
> 
> 

Here's a 'working' [plunker](https://plnkr.co/edit/pbzT3iNGoSjhEnEEI0a7?p=preview) demonstrating the problem.

**The fact is that if I use the quick method `$http.get('clients.json')` it works.**

Any help would be appreciated.