Request IgnoreSubRequest Method (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(
	string resource
)

Parameters

resource
Type: System String
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-request to ignore
request1.IgnoreSubRequest("http://localhost/Themes/TestPlant/Content/images/orange_button_bg.gif");
Response response1 = request1.Send();
See Also