Request AddKeepSubRequestContentUrl Method C# API
Adds a URL, so the content of sub-request responses that match the specified URL fragment will be kept.

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

public virtual void AddKeepSubRequestContentUrl(
	string urlFragment
)

Parameters

urlFragment
Type: System String
The responses from sub-requests that match this urlFragment will be kept.
Remarks

In general, it is not necessary to retain content for sub-requests, and it will incur a performance penalty to do so. However, a situation may arise where it is necessary to check or extract a value from a sub-response. In this situation, you can specify that the content of certain sub-responses should be retained.
Examples

The following example demonstrates keeping the content of the sub-request with the url http://localhost/images/magnifying-glass.png
// Keep the content of the sub-request with the url http://localhost/images/magnifying-glass.png
request.AddKeepSubRequestContentUrl("http://localhost/images/magnifying-glass.png");
See Also