Documentation for this section has not yet been entered.
If a client sends authentication information, such as a user name and password, you do not want to enable the server to redirect, because this can compromise security.
A System.Net.WebException is thrown if the HttpWebClientProtocol.AllowAutoRedirect property is false and the Web server attempts to redirect the request. The System.Net.WebException.Response property contains an System.Net.HttpWebResponse object, where both the System.Net.HttpWebResponse.StatusCode and System.Net.HttpWebResponse.Headers properties reflect details regarding the attempted redirect. The System.Net.HttpWebResponse.StatusCode property contains an System.Net.HttpStatusCode equivalent to one of the HTTP redirect status codes (301, 302, and 307) and the Location header within the System.Net.HttpWebResponse.Headers collection points to the URI that the request attempted to be redirected to.