title: Post XML via xmlhttpresponse and read xml from php
body: <p>I have managed to send an xml via post using <code>xmlhttprequest.</code>  I have also managed to read the whole xml syntax by an aspx page using</p>
  
  <pre><code>Dim reader As System.IO.StreamReader = New System.IO.StreamReader(Page.Request.InputStream)
  Dim xmlData As String = ""
  xmlData = reader.ReadToEnd()
  </code></pre>
  
  <p>I am now trying to read the xml from a php page.  (I want to read the whole xml, headers and data)</p>
  
  <p>using <code>$_POST</code> I am getting nothing<br>
  using <code>file_get_contents("php://input")</code> im getting the xml's data, no headers.  </p>
  
  <p>what am I doing wrong?  How can I read the whole posted xml?</p>