Request SendSubRequests Method C# API
Sends the sub-requests for this request to the web server, and waits for the responses.

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

public void SendSubRequests(
	Response response
)
Remarks

The response parameter should be the Response object that was returned by a call to SendTopLevel .

This method will compile a list of sub-requests to send to the web server. This list is made up of:

  • Any sub-requests that are identified by parsing the initial Response
  • The sub-requests explicitly defined by calls to AddSubRequest(Url), SubRequests

The sub-responses will be attached to the Response object that is passed in, and can be accessed by using the SubResponses property.

Examples

The following example demonstrates sending sub-level requests separately to the top-level request.
Url url1 = new Url(protocol1, localhost, "/");
Request request1 = Browser.CreateRequest(HttpMethod.GET, url1, 1);
// Send the top-level request only 
Response response1 = request1.SendTopLevel();
// Now send the sub-requests 
request1.SendSubRequests(response1);
// We must call end() when we have finished with this request
request1.End();
See Also