Request SetMessageBody Method (String)C# API
Sets the body of the HTTP request that will be sent to the server. This method is normally used with a POST or PUT request.

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

public void SetMessageBody(
	string messageBody
)

Parameters

messageBody
Type: System String
The body of the message (e.g. the POST data).
Remarks

Examples

The following example demonstrates setting the message body of a POST request.
Url url32 = new Url(protocol1, localhost, "/login");
Request request32 = Browser.CreateRequest(HttpMethod.POST, url32, 32);
request32.SetMessageBody("Email=user@testplant.com&Password=password&RememberMe=false");
Response response32 = request32.Send();
See Also