Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Name

FORCE_HTTP_CONTENT_LENGTH

Possible Values

"true", "false"

Default Behavior

false

Scope

axis2

Description

This property allows the content length to be sent when the ESB sends a request to a back end server. When HTTP 1.1 is used, this property disables chunking and sends the content length. When HTTP 1.0 is used, the property only sends the content length.

This property should be used in combination set in scenarios where the backend server is not able to accept chunked content. For example, in a scenario where a pass-through proxy is defined and the backend does not accept chunked content, this property should be used together with the COPY_CONTENT_LENGTH_FROM_INCOMING property, to simply add the content length without chunking.

Warning

This property can cause performance degradation. It should only be used with message relay.

Example

Code Block
languagexml
<property name="FORCE_HTTP_CONTENT_LENGTH" scope="axis2" value="true"></property>

 

Anchor
CopyContentLength
CopyContentLength
COPY_CONTENT_LENGTH_FROM_INCOMING

Name

COPY_CONTENT_LENGTH_FROM_INCOMING

Possible Values

"true", "false"

Default Behavior

false

Scope

axis2

Description

This property allows the HTTP content length to be copied from an incoming message. It is only valid when the FORCE_HTTP_CONTENT_LENGTH property is used. The COPY_CONTENT_LENGTH_FROM_INCOMING avoids buffering the message in memory for calculating the content length, thus reducing the risk of performance degradation.

Example

Code Block
languagexml
<property name="COPY_CONTENT_LENGTH_FROM_INCOMING" value="true" scope="axis2"/>