title: AngularJS Http vs Jquery Ajax
body: <p>i'm trying to send to a ws a post request using some parameters.</p>
  
  <p>in Ajax i do:</p>
  
  <pre><code>$.post("http://myWS",{name:"xxx",surname:"yyy"},function(response){
     console.log(response);
  });
  </code></pre>
  
  <p>this generate that payload:</p>
  
  <pre><code>{name:"xx",surname:"yyy"}
  </code></pre>
  
  <p>In AngularJS i do:</p>
  
  <pre><code>return $http({
      method: 'POST',
      async : true,
      cache : false,
      url: "http://myWS",
      data: {name:"xxx",surname:"yyy"},
  });
  </code></pre>
  
  <p>And this generates that paylaod:</p>
  
  <pre><code>{"name":"xxx","surname":"yyy"}
  </code></pre>
  
  <p>As you can see this payload differs from ajax one.</p>
  
  <p>I tried to add header to $http request:</p>
  
  <pre><code>headers: {'Content-Type': 'application/x-www-form-urlencoded'}
  </code></pre>
  
  <p>but results is the same.</p>
  
  <p>what could be the problem??
  thanks!</p>