Request SetMessageBody Method ( Byte )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.5.8.37 (1.0.0.0)
Syntax

public void SetMessageBody(
	byte[] messageBody
)

Parameters

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

Examples

The following example demonstrates setting individual bytes to send as POST data.
Url url32 = new Url(protocol1, localhost, "/login");
Request request32 = Browser.CreateRequest(HttpMethod.POST, url32, 32);
request32.SetMessageBody(new byte[] { 0x01, 0x02, 0x03});
Response response32 = request32.Send();
See Also