How determine redirect url
C#
1
Posts
1
Posters
0
Views
1
Watching
-
How can I know where a url gets redirected programatically? e.g. This url:
http://scobleizer.com/feed/
redirects to the following url:http://feeds2.feedburner.com/fastcompany/scobleizer
I am trying to read the xml document of feed. But the following lines of code:var doc = new XmlDocument();
doc.Load(url);will throw an exeption for the first url:
System.Net.WebException: The remote server returned an error: (404) Not Found.