title: Not able to send POST request through jQuery Ajax
body: <p>I was trying to send an ajax request as POST request. But when i verified it on httpFox on firefox, the request is sent as GET. I tried both $.ajax() and $.post(). </p>
  
  <p>Many had a query regarding the same and had missed the "type" in $.ajax(), but even if i mention the type as "POST", the request will be of type GET.
  Here is my code:</p>
  
  <pre><code>$('.test').click(function(){
     alert("clicked");
     $.ajax({
     type: "POST",
     url: "www.testsite.com",
     data: "name=John&amp;location=Boston",
  success: function(msg){
      alert( "Data Saved: " + msg );
  }
  });
   });
  </code></pre>
  
  <p>Any idea why it happens? </p>