System.Net.HttpStatusCode.RedirectKeepVerb Field

Equivalent to HTTP status 307. HttpStatusCode.RedirectKeepVerb indicates that the request 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 also use the POST method.

Value: TemporaryRedirect

Syntax

HttpStatusCode RedirectKeepVerb

Remarks

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

HttpStatusCode.RedirectKeepVerb is a synonym for HttpStatusCode.TemporaryRedirect.

Requirements

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