Take a look at the following code in the Page_Load event of an ASPX page. The Request object is a wrapper object of the type System.Web.HttpRequest that contains information about the current HTTP request:
private void Page_Load(object sender, EventArgs e)
{
Stream instream = Request.InputStream;
...
instream.Close();
}