title: File download in IE6 gets the wrong filename
body: <p>I have a PHP script being served over https:// that is trying to push a PDF file to the user.  The problem that in Internet Explorer 6 (which unfortunately I still have to support) is not obeying the filename being set in the header.  FireFox and IE7 are both working properly.  </p>
  
  <p>The file name keeps coming out as a random name with the correct extension.  Example: "CAOTC5K3.pdf", "CAXSIPXV.pdf" or "CA1OCVTX.pdf"</p>
  
  <p>If I un-comment out the "Content-type" line, IE6 gives me an error, and tries to download the file inline with the name of the querystring that was passed to PHP.</p>
  
  <pre><code>&lt;?php
  //header( "Content-type: application/pdf" );
  $filename = 'quickquote.pdf';
  header( "Content-Disposition: attachment;filename=$filename" );
  echo file_get_contents( "/example.pdf" );
  die;
  ?&gt;
  </code></pre>
  
  <p>I have tried wrapping the file name in quotes, adding a <code>\n</code> at the end of the <code>header</code> lines, adding <code>header('Content-type: application/octet-stream');</code>, adding <code>header("Content-Type: application/force-download");</code></p>