System.Net.HttpStatusCode.RedirectMethod Field

Equivalent to HTTP status 303. HttpStatusCode.RedirectMethod automatically redirects the client to the URI specified in the Location header as the result of a POST. The request to the resource specified by the Location header will be made with a GET.

Value: RedirectMethod

Syntax

HttpStatusCode RedirectMethod

Remarks

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

HttpStatusCode.RedirectMethod is a synonym for HttpStatusCode.SeeOther.

Requirements

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