Stream was not readable - nothing is disposed of, why does this not work?
<p>I have the following code:</p>

<pre><code> // Create POST data and convert it to a byte array.
        string postData = "name=t&amp;description=tt";
        byte[] byteArray = Encoding.UTF8.GetBytes(postData);
        // Set the ContentType property of the WebRequest.
        request.ContentType = "application/x-www-form-urlencoded";
        // Set the ContentLength property of the WebRequest.
        request.ContentLength = byteArray.Length;
        // Get the request stream.

        using (StreamReader reader1 = new StreamReader(request.GetRequestStream()))
        {
            string s = reader1.ReadToEnd();
        }
</code></pre>

<p>Ignore the naming convention (e.g. reader1), as I am trying to adjust the code to make it work. Anyway, when the flow hits the using (..... ) statement, I get the following exception:</p>

<p>Stream was not readable</p>

<p>I want to read the entire request stream into a string, nothing is closed, so the code should work?</p>

<p>Thanks</p>
