title: $http.get() with JSON data
body: <p>I'm writing a server app and wanted the client to use data in body to pararmeterize my GET method, like this:</p>
  
  <pre><code># http -v GET http://localhost:3000/url text=123 foo=bar
  GET /url HTTP/1.1
  Accept: application/json
  Accept-Encoding: gzip, deflate, compress
  Content-Length: 29
  Content-Type: application/json; charset=utf-8
  Host: localhost:3000
  User-Agent: HTTPie/0.4.0
  
  {
      "foo": "bar", 
      "text": "123"
  }
  </code></pre>
  
  <p>In AngularJS I tried:</p>
  
  <pre><code>var params = {
      "foo": "bar", 
      "text": "123"
  }
  
  // no body
  $http({
    method: 'GET',
    url: '/url',
    data: params })
  
  // ugly url
  // also has its limitation: http://stackoverflow.com/questions/978061/http-get-with-request-body
  $http({
    method: 'GET',
    url: '/url',
    params: params })
  
  // params in body, but I wanted GET
  $http({
    method: 'POST',
    url: '/url',
    data: params })
  </code></pre>
  
  <p>Is this by design or a bug? </p>
  
  <p>I cannot see why from the <a href="http://docs.angularjs.org/api/ng.$http" rel="noreferrer">documentation</a>.</p>