title: using Request.GetBufferlessInputStream() correctly for POST data c#
body: <p>I have created a c# web page which will be listening for POST data from a service. I've seen that I may need to use Request.GetBufferlessInputStream() which will read in the page data. I will then process this data further in my code.</p>
  
  <p>However, I cannot get the post data! I have found that I need to use</p>
  
  <pre><code>Stream httpStream = Request.GetBufferlessInputStream();
  Response.Write(httpStream.ToString());
  </code></pre>
  
  <p>but I am not sure how to then read that. I have tried reading from 0 to the end, but get only numbers returned (assume byte data?). </p>
  
  <p>I basically want to see a string! I've been using CURL to fake a post. That code is here</p>
  
  <pre><code>curl -H "Content Type: application/xml" -d "&lt;callback var=\"matt\"&gt;" -X POST http://localhost:1111/Default.aspx
  </code></pre>
  
  <p>So I would expect my script to output <code>&lt;callback var="matt"&gt;</code>. Any ideas?</p>