System.Net.WebClient Redirection Detection

otherside

Well-known member
Joined
Mar 16, 2003
Messages
127
Location
UK - Greece
Hey guys,

Does anyone know how you can detect web redirection with the WebClient class?

What i mean is

say you set Webclient.BaseAddress("http://mydomain.com/real.htm")

but for some reason the server redirects you to

http://mydomain.com/notreal.htm

is there a way to check that the received response is from real.htm ?

Thank you
 
Back
Top