System.Net.HttpStatusCode.Redirect Field

Equivalent to HTTP status 302. HttpStatusCode.Redirect indicates that the requested information is located at the URI specified in the Location header. The default action when this status is received is to follow the Location header associated with the response. When the original request method was POST, the redirected request will use the GET method.

Value: Found

Syntax

HttpStatusCode Redirect

Remarks

If the HttpWebRequest.AllowAutoRedirect property is false, HttpStatusCode.Redirect will cause an exception to be thrown.

HttpStatusCode.Redirect is a synonym for HttpStatusCode.Found.

Requirements

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