views:

42

answers:

1

Hi, I would like to know how to implement a chunked HTML document. How it looks? Can anyone post an example of an chunked HTML ducument, because I can't understand how to prepare my HTML document for using the Chunked transfer encoding.

Thansk!

Cheers Nik

+1  A: 

Transfer-Encoding: chunked is a HTTP feature and it can be used with anything transferred over HTTP. You can't and shouldn't do anything special with the data, it is all done by a HTTP server and HTTP clients.

wRAR
Well, not really. If you have an HTML document you should build the chunks as first like this:http://stackoverflow.com/questions/2481858/how-to-make-php-generate-chunked-responseFrom where should the client knows how big the chunks are?Cheers
Nik
You can send anything in a chunked response. You need to send it in proper chunks with lengths etc. but you don't need to prepare data before generating chunks.
wRAR