2

Does anything carried inside HTTP care about chunk sizes? Some sort of RPC protocol perhaps?

EDIT: Here's the Wikipedia sample response

Date: Mon, 30 Mar 2009 22:22:21 GMT

HTTP/1.1 200 OK
Content-Type: text/plain
Transfer-Encoding: chunked

23
This is the data in the first chunk

1A
and this is the second one

0

The response could have easily been chopped up into chunks of sizes different from 23 and 1A. Is there a case where chunk boundaries may be significant?

Charles Merriam
  • 19,908
  • 6
  • 73
  • 83
sigjuice
  • 28,661
  • 12
  • 68
  • 93

1 Answers1

4

None that I know of. It would be against the spirit of HTTP if not an outright bug.

bobince
  • 528,062
  • 107
  • 651
  • 834
  • That makes sense I guess. I suppose it is conceivable that chunk boundaries may be used to delimit some higher level protocol, but it would require both sides to agree. – sigjuice Mar 31 '09 at 15:03
  • 1
    Yeah, a protocol could in theory do that, but it'd be pretty bogus since the usual purpose of layering things over HTTP is to abstract this stuff away. I would be surprised if this actually happened (other than unintentionally due to poor implementation). – bobince Mar 31 '09 at 15:32