title: php://input is empty on POST request
body: <p>Problems with <code>multipart/form-data</code> forced me to parse POST request's parameters manually as I already doing for PUT requests. For that purpose I used this code:</p>
  
  <pre><code>$rawData = file_get_contents('php://input');
  </code></pre>
  
  <p>But I figured that <code>php://input</code> is always empty for POSTs, at least, for <code>php-fpm</code> SAPI.</p>
  
  <p>Here is some pics from debugger. POST request:</p>
  
  <p><img src="https://i.stack.imgur.com/uNHYb.png" alt="empty $rawData"></p>
  
  <p>PUT with same params:</p>
  
  <p><img src="https://i.stack.imgur.com/xE9gf.png" alt="filled $rawData"></p>
  
  <p>Is there a way to get raw POST request body? Thanks in advance.</p>