Request SendTopLevel Method C# API
Sends this request to the web server, and waits for the response to be served, but doesn't send any sub-requests. This is unlike Send  which also sends sub-requests. You can send the sub-requests later by calling SendSubRequests(Response).

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

public Response SendTopLevel()

Return Value

The Response to the top-level request. Note that this will not contain any sub-responses.

The following example demonstrates sending the top-level request separately to the sub-requests.
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 
// We must call end() when we have finished with this request
See Also