This is typical scenario: a page is evaluated, and there\'s a buffer - once the buffer is full, the part of the page that is evaluated is sent to the browser. This uses the HTTP
You cannot redirect from the server in a chunked encoding because the headers have already been sent. The only way to perform a redirect is to send a <script>
tag from the server and perform a client side redirect. Just out of curiosity are you trying to implement a COMET server? If this is the case HTML5 WebSockets seem better way (if the browsers you are targeting support them of course) compared to the hidden iframe technique.