Response RedirectedFrom Property C# API
Gets the Response from which this Response has been redirected.

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

public Response RedirectedFrom { get; }

Field Value

The Response which this Response has been redirected from, or null if no redirection occurred.
Remarks

If a request returns a redirect response code (e.g. 301 or 302), then eggPlant Performance will automatically follow the redirect, and the Response object returned from Send  will be the final destination (assuming FollowRedirects has been set to true). In this situation, this method can be used to examine the earlier responses in the redirect chain.

If the request was not redirected, then this method returns null.

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