Your screen. Your subscription. Your ProMax. Start with a one-day trial ↗

Pro Max 4K OTT

Reading a multipart HTTP 206 response with several ranges

An HTTP 206 response can contain several requested ranges in a multipart body.

Sound without the picture. Give the programme and player details without assuming a cause from the symptom alone. Pro Max 4K OTT, promax4k.tv.
Sound without the picture. Give the programme and player details without assuming a cause from the symptom alone. Pro Max 4K OTT, promax4k.tv.

An HTTP 206 response can contain several requested ranges in a multipart body. Each part identifies its own interval, separated by a declared boundary. A diagnostic tool that expects one unwrapped piece can misread that response even though the server used valid multi-range semantics. Inspect the body structure before calling the media corrupt.

Follow two selected intervals

Imagine a client requesting bytes zero through 99 and 1000 through 1099 of one representation. A multipart response can enclose those as separate parts. Each part carries Content-Range identifying the bytes it supplies. The boundary text and part headers are packaging around the selected data; they are not additional bytes from the original media object.

Read metadata at the correct level

The outer Content-Type identifies multipart/byteranges and supplies its boundary parameter. For a multiple-part response, Content-Range belongs inside each part rather than the outer HTTP header section. Absence of one outer range field is therefore expected in this case. A checker designed only for a single-range 206 must recognize the multipart type instead of inventing a missing-header error.

Do not assume the requested order survived

RFC 9110 allows a server to combine suitable ranges, and a client must inspect each returned part rather than rely on the original requested order. The illustrative client should identify intervals from their metadata before assembling usable data. Counting two requested ranges and two arbitrary body chunks is not enough to establish that the correspondence is correct.

Report a parser problem precisely

Preserve the request’s range list, response status, outer type and redacted per-part intervals. A developer can compare that structure with the client’s supported response handling. A viewer can simply report that a particular seek repeatedly fails while normal playback succeeds. Do not request many tiny ranges as a tuning experiment: multipart overhead and application support matter. The useful outcome is identifying whether the client understood the actual ranged response format, with the source’s media validity still assessed separately.

Sources & further reading

An evening worth making time for

Get the player ready.
We’ll help with the rest.

Install the player for your screen, then WhatsApp the ProMax team for a one-day free trial. Already watching? Open the help desk for your next step.

Ask ProMax↑