Request IgnoreSubRequest Method (Url)C# API
Specifies a Url that will be ignored when fetching sub-requests from the web server.

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

public void IgnoreSubRequest(
	Url url
)
Remarks

This URL will not be downloaded, even if a reference to it is 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);

// Specify the sub-requests to ignore
request1.IgnoreSubRequest(new Url(protocol1, localhost, "/Themes/TestPlant/Content/images/orange_button_bg.gif"));
request1.IgnoreSubRequest(new Url(protocol1, localhost, "/Themes/TestPlant/Content/images/bg_maincolumn_3.gif"));
request1.IgnoreSubRequest(new Url(protocol1, localhost, "/Themes/TestPlant/Content/images/logo-reflection.gif"));
Response response1 = request1.Send();
See Also