title: web request timeout handling?
body: <pre><code>HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
  request.Timeout = 20000;
  using (WebResponse response = request.GetResponse())
  using (var stream = response.GetResponseStream())
  using (var reader = new StreamReader(stream))
  {
      var result = reader.ReadToEnd();
      // Do something with result
  }
  </code></pre>
  
  <p>In the above example I have a timeout defined, if it happens to hit the timeout how would I know, the result would be empty ?</p>
  
  <p>Do I receive any reponse types ?</p>
  
  <p>How can I make sure I got timed out ?</p>