Request IgnoreSubRequest Method (Protocol, IpEndPoint, String)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.7.98 (1.0.0.0)
Syntax

public void IgnoreSubRequest(
	Protocol protocol,
	IpEndPoint ipEndPoint,
	string path
)

Parameters

protocol
Type: Facilita.Web Protocol
The protocol of the sub-request to ignore.
ipEndPoint
Type: Facilita.Native IpEndPoint
The IpEndPoint of the sub-request to ignore.
path
Type: System String
The path of the sub-request to ignore.
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(protocol1, localhost, "/Themes/TestPlant/Content/images/orange_button_bg.gif");
request1.IgnoreSubRequest(protocol1, localhost, "/Themes/TestPlant/Content/images/bg_maincolumn_3.gif");
request1.IgnoreSubRequest(protocol1, localhost, "/Themes/TestPlant/Content/images/logo-reflection.gif");
Response response1 = request1.Send();
See Also