Possible Duplicate:
A way to figure out redirection URL
C# Issue:
If we type the following url (see warning) http://migre.me/13rQa
It will redirect to oooooo1.ru
I like to know the redirected URL from C#.
Anybody knows how to do it.
P.S: These mentioned URL could be virus affected. Please use on own risk
If migre.me has some kind of an API, maybe they can provide you with a “preview” of the site you’ll be redirected to.
If they don’t, you’ll have to create an HttpWebRequest and see the Uri of the response.
e.g.
With that code, the response.ResponseUri property will have the address you’ll be redirected.
Hope this helps you