$_POST array is empty when POSTing with C# WebRequest
<p>I've been trying to get some client-server interaction happening with JSON, however, the data that I post to the server is not arriving; the <code>$_POST</code> array in my PHP script is empty.</p>

<p>I've just ended up grabbing the WebRequest example straight from <a href="http://msdn.microsoft.com/en-us/library/debx8sh9.aspx" rel="nofollow">MSDN</a> and testing that. That still doesn't work. I've also tried just posting some data with HTML form, and that works fine. I'm completely stumped.</p>

<p>When I call <code>getallheaders()</code> in my PHP I get</p>

<pre><code>OK
array(5) {
  ["Content-Type"]=&gt;
    string(33) "application/x-www-form-urlencoded"
  ["Host"]=&gt;
    string(9) "localhost"
  ["Content-Length"]=&gt;
    string(2) "54"
  ["Expect"]=&gt;
    string(12) "100-continue"
  ["Connection"]=&gt;
    string(10) "Keep-Alive"
</code></pre>

<p>though doing a var_dump($_POST) returns array(0)</p>

<p>Can anyone suggest anything?</p>
