Request SubRequests Property C# API
Gets or sets the list of sub-requests that will be fetched from the web server by this request. The sub-requests will be fetched when Send  or SendSubRequests(Response) are called.

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

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

Field Value

The list of sub-requests that will be fetched from the web server by this request.
Examples

The following example demonstrates sending sub-requests in addition to the top-level request in a single call to the Send  method.
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"));
// Attach the list of sub-requests to the top-level request
request1.SubRequests = subRequests;
// Send the top-level request to the server, followed by all of the sub-requests 
Response response1 = request1.Send();
See Also