Request IgnoredSubRequests Property C# API
Gets or sets the list of sub-requests that will be ignored when fetching sub-requests from the web server.

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

public List<Url> IgnoredSubRequests { get; set; }

Field Value

The list of sub-requests that will be ignored when fetching sub-requests from the web server.
Remarks

Any requests included in this list will not be downloaded, even if references to them are found in the HTML of the top-level request.
Examples

The following example demonstrates ignoring sub-request URLs so that they will not be fetched.
Url url1 = new Url(protocol1, localhost, "/");
// Create a GET request
Request request1 = Browser.CreateRequest(HttpMethod.GET, url1, 1);

// Create a list of sub-requests
List<Url> subRequests = new ArrayList<Url>();
subRequests.Add(new Url(protocol1, localhost, "/Themes/TestPlant/Content/images/orange_button_bg.gif"));
subRequests.Add(new Url(protocol1, localhost, "/Themes/TestPlant/Content/images/bg_maincolumn_3.gif"));
subRequests.Add(new Url(protocol1, localhost, "/Themes/TestPlant/Content/images/logo-reflection.gif"));
// Specify that all requests on this list should be ignored when fetching sub-requests
request1.setIgnoredSubRequests(subRequests);
Response response1 = request1.Send();
See Also