IBM Support

DataPower firmware version 6.0 changes Content-Length header to chunked

Question & Answer


Question

I upgraded DataPower from V5 to V6. Now, when my client application submits HTTP/1.1 requests via DataPower, the responses returned to the client no longer include the Content-Length header. What changed between the versions?

Cause

A client that is fully compliant to the HTTP/1.1 specification must be able to handle the Transfer-Encoding header.

Answer

Up to 5.0.0 firmware, when HTTP/1.1 is used on the front end, DataPower selected the response length encoding (Chunked or Content-Length) using rather complex criteria that were not always optimal, specifically preventing streaming in some cases.

To resolve the above defect, starting with 6.0.0, DataPower always uses Transfer-Encoding (chunked) instead of Content-Length header when responding to HTTP/1.1 request.

This is compliant with IETF RFC 7230 section 4.1 about Chunked Transfer Coding that has the following statement:


    "A recipient MUST be able to parse and decode the chunked transfer coding."

All DataPower firmware releases generate responses with Content-Length format when using HTTP/1.0 protocol.

[{"Product":{"code":"SSHT9H","label":"WebSphere DataPower Integration Appliance XI52"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"--","Platform":[{"code":"PF009","label":"Firmware"}],"Version":"6.0.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21690276