title: symfony: setHttpHeader() doesn't work, header() does
body: <p>I built a simple action in symfony which generates a PDF-file via wkhtmltopdf and outputs it to the browser.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>  $response = $this-&gt;getResponse();
    $response-&gt;setContentType('application/pdf');
    $response-&gt;setHttpHeader('Content-Disposition', "attachment; filename=filename.pdf");
    $response-&gt;setHttpHeader('Content-Length', filesize($file));
    $response-&gt;sendHttpHeaders();
    $response-&gt;setContent(file_get_contents($file));
    return sfView::NONE;
  </code></pre>
  
  <p>That works fine in my local development environment - my browser gets the headers as expected, showing the download-dialogue.</p>
  
  <p>Now I updated my testing-environment, running Apache 2.2.9-10+lenny9 with PHP 5.3.5-0.dotdeb.0.
  If i call that URL now for the testing-environment, my browser don't get any custom set headers:</p>
  
  <pre><code>Date    Mon, 07 Mar 2011 10:34:37 GMT
  Server  Apache
  Keep-Alive  timeout=15, max=100
  Connection  Keep-Alive
  Transfer-Encoding   chunked
  </code></pre>
  
  <p>If I set them manually via header() in my action, Firebug shows the headers as expected.
  Does anybody know what could be wrong? Is it a symfony bug, or a php or apache2 configuration issue? I don't get it. :-/</p>
  
  <p>Thanks in advance!</p>