title: How determine redirect url
body: <p>How can I know where a url gets redirected programatically?</p>
  
  <p>e.g. This url:</p>
  
  <p><strong><a href="http://scobleizer.com/feed/" rel="nofollow noreferrer">http://scobleizer.com/feed/</a></strong></p>
  
  <p>redirects to the following url:</p>
  
  <p><strong><a href="http://feeds2.feedburner.com/fastcompany/scobleizer" rel="nofollow noreferrer">http://feeds2.feedburner.com/fastcompany/scobleizer</a></strong></p>
  
  <p>I am trying to read the xml document of feed. But the following lines of code:</p>
  
  <pre><code>var doc = new XmlDocument();
  doc.Load(url);
  </code></pre>
  
  <p>will throw an exeption for the first url:</p>
  
  <blockquote>
    <p>System.Net.WebException: The remote
    server returned an error: (404) Not
    Found.</p>
  </blockquote>