Creates a Request object that can be used to send an HTTP request to the web server.
Namespace: Facilita.WebAssembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.8.37 (1.0.0.0)
Syntax
public Request CreateRequest( HttpMethod method, Url url )
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.
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/")); Response response1 = request1.Send();
See Also