Pushlet Test


This is a test for pushlets via XMLHttpRequest. It works for Firefox as well as for Google Chrome, but not for IE. For IE there are different techniques (see links below).
A perl server increments a counter and streams that to the browser. The JavaScript XMLHttpRequest object gets the result in readyState 3 and shows it via DHTML. While the server counts to 100000, the connection stops at about 12000. There seemes to be a timelimit after which the XMLHttpRequest enters readyState 4. This holds for FF as well as for Chrome.
There are differences between Chromium and Firefox: While FF works with all mime types, Chromium does not work with "Content-Type: text/plain". The reason for this is (at least for me) not finally clear. At the end Chromium does work with "Content-type: application/octet-stream" and "Transfer-Encoding:chunked".

Counter:No results so far.
Status:Running.



More information about pushlets:
Pushlets Comet Meteor