title: PHP:: Get POST Request Content
body: <p>I'm sending a POST request using <code>WebClient.UploadData()</code> method (C#) to my webserver. The packet sent to my webserver looks like so:</p>
  
  <pre><code>POST / HTTP/1.1
  Host: {ip}
  Content-Length: {length}
  Expect: 100-continue
  Connection: Keep-Alive
  
  
  {buffer_content}
  </code></pre>
  
  <p>As the {buffer_content} is nowhere assigned in the $_POST array, I have the following question...</p>
  
  <p><strong>Question:</strong> How do I read the {buffer_content} with PHP?</p>
  
  <p>I've stumbled upon <strong>file_get_contents('php://input')</strong>, but I'm unsure whether that is recommended to do. </p>