title: Internet Explorer asks to download POST request as a download
body: <p>I have inherited a PHP script that does a lot of logic with in-url POST. Once we make the request within IE9, it asks the user for a download of type "true" with a size that closely resembles the POST request. At no point do we see any behavior where the data isn't being saved on the server -- the expected behavior after submit is to simple ask for a download.</p>
  
  <p>The actual POST call is being fired using jQuery.ajax:</p>
  
  <pre><code>$.ajax({
    type: "POST",
    url: "profile/edit-profile-info.php",
    data:"mail="+mail,
    success: function() {
      console.log('Success!!!');
      location.reload('true'); //Reloads the page with the form
    }
  }).done(function() {
      console.log('Done!!!');
      location.reload('true'); //Reloads the page with the form
  });
  </code></pre>
  
  <p>And the reload command is inherited within the browser object space, from what I can tell.</p>
  
  <p>The actual PHP script that handles this data essentially saves the data in an ORM (not in the code) and returns a request as text/plain</p>
  
  <pre><code>header('Content-Type: text/plain; charset=utf-8');
  $data-&gt;record-&gt;mail = $_POST['mail'];
  </code></pre>
  
  <p>We tried sending another Content Type as a request and it fails to function in Chrome, Firefox, et al.</p>
  
  <p>Looking at the inherited HTML, the fields are populated in a hierarchy without a form tag, which gives me pause as to that being the cause. I'm not entirely sure if that's a culprit. Unfortunately I can't readily give out a demo for review. But if anyone has seen this or has any ideas on the cause, insight would be appreciated.</p>