Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is the HTTP content-range header compatible with chunked transfer encoding?

As above, is byte serving chunked transfer possible in the HTTP standard?

like image 361
shawn Avatar asked Jan 18 '13 10:01

shawn


1 Answers

From RFC2616, Transfer-Encoding is a property of the message, not the entity. Content-Range is an entity-header. So in principle they can be used together, unless there exists some corner case where the two conflict.

Here is how it is supposed to happen: use asterisk "*" as the instance-length. Omit the content-length header and send Transfer-Encoding: chunked.

like image 108
Yichun Avatar answered Sep 30 '22 15:09

Yichun