Uploads a data to provided URI and returns a response data of the upload operation.

Namespace:  Rebex.Net
Assembly:  Rebex.Http (in Rebex.Http.dll)

Syntax

Visual Basic
Public Function UploadData ( _
	uri As String, _
	method As String, _
	data As Byte() _
) As Byte()
C#
public byte[] UploadData(
	string uri,
	string method,
	byte[] data
)

Parameters

uri
Type: System..::..String
Uri to send data to.
method
Type: System..::..String
HTTP method to use when sending the data.
data
Type: array<System..::..Byte>[]()[][]
Data to send to provided URI.

Return Value

Response data of the upload operation.

Remarks

HTTP method POST is used when method is set to null (Nothing in VB).

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also