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: 9.4.0.26 (1.0.0.0)
Syntax

public bool WasRedirected { get; }

Field Value

true if the request was redirected; otherwise, false.
Remarks

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

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