I have the following problem there are web site that does redirection to another websites and then to another website sites.....(like a 20 redirection), I read that the object HttpWebRequest has the property MaximumAutomaticRedirections, I set this property to 10 times and check with a web site that do redirection in the Javascrip like(Client Side):
<script> window.location = "http://www.anotherwebsite.com"; </script>
I see that I redirect all the time, I was wandering if can can set a number of re directions I want to allow, currently my code is not working.
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(myURLl); request.MaximumAutomaticRedirections = redirectionTimes; response = (HttpWebResponse)request.GetResponse();
I see that doesn't matter how many redirection the website does, I allow all of them? Is possible to allow only a specif numer if the re directions are done in the Client Side