WebBrowser CreateRequest Method (HttpMethod, Url, Int32)C# API
Creates a Request object that can be used to send an HTTP request to the web server, specifying a unique identifier that can be used to track the request.

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

public Request CreateRequest(
	HttpMethod method,
	Url url,
	int reference
)

Parameters

method
Type: Facilita.Web HttpMethod
The HttpMethod to use when sending the Request to the web server.
url
Type: Facilita.Web Url
The Url that this request should be sent to.
reference
Type: System Int32
A unique identifier that can be used to track this Request.

Return Value

The new Request object.
Remarks

Examples

The following example demonstrates creating a Request and sending it.
// Send a GET request to http://www.testplant.co.uk/
Request request1 = WebBrowser.CreateRequest(HttpMethod.GET, new Url("http://www.testplant.co.uk/"), 1); 
Response response1 = request1.Send();
See Also