title: Ignore Content-Length header when using file_get_contents
body: <p>I need to get the contents of a page, which always sends a <code>Content-Length: 0</code> header, however the page is never empty.</p>
  
  <p>The <code>file_get_contents(url)</code> just returns an empty string.</p>
  
  <p>The whole header returned by the page is:</p>
  
  <pre><code>HTTP/1.1 200 OK
  X-Powered-By: PHP/5.3.10
  Expires: Mon, 26 Jul 1997 05:00:00 GMT
  Last-Modified: Sat, 18 Feb 2012 18:14:59 GMT
  Cache-Control: no-store, no-cache, must-revalidate
  Cache-Control: post-check=0, pre-check=0
  Pragma: no-cache
  Content-Type: text/html; charset=UTF-8
  Content-Length: 0
  Date: Sat, 18 Feb 2012 18:14:59 GMT
  Server: lighttpd
  </code></pre>
  
  <p>Would it be possible to use file_get_contents and ignore the header or do I need to use curl?</p>
  
  <p><strong>Edit</strong></p>
  
  <p><code>get_headers(url)</code> output (using <code>print_r</code>):</p>
  
  <pre><code>Array
  (
      [0] =&gt; HTTP/1.0 200 OK
      [1] =&gt; X-Powered-By: PHP/5.3.10
      [2] =&gt; Content-type: text/html
      [3] =&gt; Content-Length: 0
      [4] =&gt; Connection: close
      [5] =&gt; Date: Sat, 18 Feb 2012 22:39:52 GMT
      [6] =&gt; Server: lighttpd
  )
  </code></pre>