Java.Net.HttpURLConnection.SetFixedLengthStreamingMode Method
Configures this connection to stream the request body with the known fixed byte count of contentLength.

Syntax

[Android.Runtime.Register("setFixedLengthStreamingMode", "(J)V", "GetSetFixedLengthStreamingMode_JHandler")]
public virtual void SetFixedLengthStreamingMode (long p0)

See Also

HttpURLConnection.SetChunkedStreamingMode(int)

Parameters

contentLength
the fixed length of the HTTP request body.

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif already connected or another mode already set.
Java.Lang.IllegalArgumentExceptionif contentLength is less than zero.

Remarks

Configures this connection to stream the request body with the known fixed byte count of contentLength.

[Android Documentation]

Requirements

Namespace: Java.Net
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1