How to make PHP generate Chunked response

后端 未结 9 2077
渐次进展
渐次进展 2020-11-28 06:32

I googled for this problem but there is no answer for it.

I want my PHP script to generate HTTP response in chunked( http://en.wikipedia.org/wiki/Chunked_transfer_en

9条回答
  •  甜味超标
    2020-11-28 07:23

    A PHP response will always be chunked if you don't specify a content-length header, and a flush occurs. (which will happen automatically after x bytes, just don't know exactly how much).

    This is a weird thing to care about. Is this some kind of academic/learning exercise or is there a real world problem you're trying to solve?

提交回复
热议问题