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.WebAssembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.7.98 (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
Note |
---|
The HTTP request is not sent until the Send or SendTopLevel method is called. |
Examples
// 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