title: Return GetResponseStream output to another function , What about respone disposing
body: <p>i'm working on download manager project
  and i'm using :</p>
  
  <pre><code>public Stream GetStream(string url)
  {
      HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
      HttpWebResponse response = (HttpWebResponse)request.GetResponse();
      return response.GetResponseStream();
  }
  </code></pre>
  
  <p>then use the returned stream as input stream and FileStream as output stream in while statement :</p>
  
  <pre><code>Stream InputStream = GetStream("http://test_url/test.zip");
  Stream OutputStream = new FileStream("d:\\test.zip", FileMode.Create, FileAccess.Write));
  do
  {
      readSize = InputStream.Read(buffer, 0, buffSize);
      OutputStream.Write(buffer, 0, (int)readSize);
  }
  while (readSize &gt; 0);
  </code></pre>
  
  <p>when downloading a file over 50MB using my 256kpps connection
  after about 20 - 30 MB,   readSize become 0 without errors</p>
  
  <p>my question is :
  is there anything wrong with Response object , is it disposed????
  or what is the problem?</p>
  
  <p>Thank you in advance,
  and i'm sorry if i can't explain better.</p>