title: How to pass parameters in $ajax POST?
body: <p>I have followed the tutorial as stated in <a href="http://api.jquery.com/jQuery.ajax/">this</a> link. In the code below for some reason the data is not appended to the url as parameters, but if I set them directly to the url using <code>/?field1="hello"</code> it works.</p>
  
  <pre><code>$.ajax({
          url: 'superman',
          type: 'POST',
          data: { field1: "hello", field2 : "hello2"} ,
          contentType: 'application/json; charset=utf-8',
          success: function (response) {
              alert(response.status);
          },
          error: function () {
              alert("error");
          }
      }); 
  </code></pre>