Mono Class Library: System.Net.HttpWebRequest Overview | Members

System.Net.HttpWebRequest.AllowAutoRedirect Property

Gets or sets a bool value that indicates whether the current request will follow redirection responses. [Edit]

public bool AllowAutoRedirect { set; get; }

Value

true if the current request will automatically follow redirection responses from the Internet resource; otherwise false . The default value is true. [Edit]

Remarks

Note:

Set HttpWebRequest.AllowAutoRedirect to true to allow the current request to automatically follow HTTP redirection headers to the new location of a resource.

The maximum number of redirections to follow is set by the HttpWebRequest.MaximumAutomaticRedirections property.

[Edit]

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0