title: How to read response header of a ajax post call of empty response body
body: <p>I am making a ajax post call that returns the required information in the response header an the empty response body . I am using the following code to make call</p>
  
  <pre><code>$.ajax({
    url : someUrl,
    type : "post",
    contentType : "application/x-www-form-urlencoded",    
    success : function(data, textStatus, request)
    {
          alert("success");
    },
    error : function(request, textStatus, errorThrown)
    {
          alert("error");     
    },
    timeout : "150000"
  }); 
  </code></pre>
  
  <p>i always get error alert since the response is empty even though the status is 200 ok. Is there any workaround for the calls like this?</p>