- contentLength
- the fixed length of the HTTP request body.
Type Reason Java.Lang.IllegalStateException if already connected or another mode already set. Java.Lang.IllegalArgumentException if contentLength is less than zero.
Equivalent to setFixedLengthStreamingMode((long) contentLength), but available on earlier versions of Android and limited to 2 GiB.