com.HttpRequest.setBodyChunk()
Disable chunk mode in HTTP 1.1 if request body size is greater than 32 KB.
Syntax
setBodyChunk(
val BOOLEAN )
- val defines whether the sending of several chunks is enabled or disabled.
Usage
The setBodyChunk()
method allows you to disable chunk mode in the request in
HTTP 1.1. Use this method to disable sending the body in several chunks when the message body size
is greater than 32 KB. For example, you can disable chunk mode when sending data contained in a file
with doFileRequest.
Set val to FALSE
to disable chunk mode. The default value is
TRUE
.
In case of error, the method throws an exception and sets the
status
variable. Depending on the error, a human-readable description of the
problem is available in the sqlca.sqlerrm
register. See Error handling in GWS calls (status).