HTTP 206 Partial Content
HTTP 206 Partial Content means the server successfully returned one or more requested ranges of a representation. Download resume and media seeking commonly use byte ranges.
Check the boundaries of the download
A request with Range: bytes=1000-1999 can receive Content-Range: bytes 1000-1999/8000. The client can prove that the response starts at the right offset before appending it. For a multipart range response, inspect the range in each part.
Compare both sides of the proxy
Run the same range request directly and through the proxy and keep Range, If-Range and the response validators in the trace. A full 200 can be appropriate when a server ignores the range or an If-Range validator no longer matches. If a range starts beyond the available data, check 416 Range Not Satisfiable.
A worked byte-range response
> Range: bytes=2000-2999
< HTTP/1.1 206 Partial Content
< Content-Range: bytes 2000-2999/8000
< Content-Length: 1000
The start and end positions are inclusive, so the returned slice contains 1000 bytes. The representation as a whole contains 8000 bytes. If you are appending to a partly downloaded file, verify that the start position matches the saved length. A range that starts one byte too early can silently corrupt the reconstructed file if the client appends every byte it receives.
When the proxy returns a complete file
Compare the response status and Content-Range before writing to the file. A 200 can occur if the server ignored Range or if a supplied If-Range validator no longer matched. Treat a complete representation as a fresh download. To isolate differences between paths, use the same request headers and compare ETag and Content-Encoding on both sides. For a later chunk of video, verify the requested offset and whether the proxy serves a cached version of the same asset.