title: C# WebRequest with php redirecting page
body: <p>I am messing around trying to write a small web crawler.  I parse out a url from some html and sometimes I get a php redirect page.  I am looking for a way to get the uri of the redirected page.</p>
  
  <p>I am trying to use System.Net.WebRequest to get a a stream using code like this</p>
  
  <pre><code>        WebRequest req = WebRequest.Create(link);
          Stream s = req.GetResponse().GetResponseStream();
          StreamReader st =  new StreamReader(WebRequest.Create(link).GetResponse().GetResponseStream());
  </code></pre>
  
  <p>The problem is that the link is a PHP redirect, so the stream is always null.  How would I get the URI to the page the php is redirecting?</p>