title: Issues when posting data through Jquery Ajax with IE 8
body: <p>We have a JavaScript client which POST data using <a href="http://api.jquery.com/jquery.ajax/" rel="nofollow noreferrer">Jquery Ajax</a>. The client post some content through the message body which server receives and processes. When I am sending data through IE 11, Chrome or FireFox, server is able to receive content posted in the message body. </p>
  
  <p>But when I emulate IE 8 by changing <code>Document Mode</code> to <code>8</code> and <code>User Agent String</code> to <code>IE 8</code> in IE developer toolbar (as shown in below image), server is not receiving content sent through message body. I am facing same issue when site is run using IE 8. </p>
  
  <p><img src="https://i.stack.imgur.com/rsOq1.png" alt="IE 8 emulation using IE developer toolbar"></p>
  
  <p>Belwo code snippet shows how I am posting the data through <a href="http://www.datatables.net/" rel="nofollow noreferrer">JQuery DataTables</a>. DataTables post the data (sort param, sort order, no of records to fetch etc) in the message body automatically, that is why we don't see any additional property in Ajax obejct. </p>
  
  <pre><code> ajax: {
      url: baseURL + '/data',
      type: 'POST'
    },
  </code></pre>
  
  <p>After lot of investigation, I found there is a <strong>difference in the request header</strong> which is preventing data from being posted on the server. When the request is sent through IE 8 mode, <code>content type</code> is not mentioned in the request header. I tried adding <code>content type</code> property in ajax object but event that is not helping. Please provide your suggestions.</p>
  
  <p><img src="https://i.stack.imgur.com/6uAf7.png" alt="enter image description here"></p>
  
  <pre><code>ajax: {
     url: baseURL + '/data',
      type: 'POST',
      contentType: 'application/x-www-form-urlencoded; charset=UTF-8'
    },
  </code></pre>
  
  <p>I verified my understanding by posting data with a REST client. When <code>content type</code> is mentioned in header, server gets the data. But when <code>content type</code> is missing server does not get data posted through body. </p>
  
  <p><img src="https://i.stack.imgur.com/pfevq.png" alt="enter image description here"></p>