Response WasRedirected Property C# API
Gets a value that indicates whether this Response was the result of a redirected request.

Namespace: Facilita.Web
Assembly: clrWebBrowser (in clrWebBrowser.dll) Version: (

public bool WasRedirected { get; }

Field Value

true if the request was redirected; otherwise, false.

If the value of this property is true, then the RedirectedFrom property will contain a Response object.

The following example demonstrates finding where a Response was redirected from.
Request request1 = WebBrowser.CreateRequest(HttpMethod.GET, url1, 1);
Response response1 = request1.Send();

if (response1.WasRedirected)
    Response redirectedResponse = response1.RedirectedFrom;
See Also