<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=User%3AWoozle%2Ftwo-way_http</id>
	<title>User:Woozle/two-way http - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=User%3AWoozle%2Ftwo-way_http"/>
	<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=User:Woozle/two-way_http&amp;action=history"/>
	<updated>2026-06-25T13:46:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://htyp.org/mw/index.php?title=User:Woozle/two-way_http&amp;diff=21353&amp;oldid=prev</id>
		<title>Woozle: moved JS links to appropriate page</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=User:Woozle/two-way_http&amp;diff=21353&amp;oldid=prev"/>
		<updated>2015-12-13T21:04:53Z</updated>

		<summary type="html">&lt;p&gt;moved JS links to appropriate page&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:04, 13 December 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is mainly a quick tabdump of pages I had open while trying to figure out how to let a server push updates to a web browser, as described [https://plus.google.com/u/0/102282887764745350285/posts/YLkt2tQESB9 here]:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is mainly a quick tabdump of pages I had open while trying to figure out how to let a server push updates to a web browser, as described [https://plus.google.com/u/0/102282887764745350285/posts/YLkt2tQESB9 here]:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[&lt;/ins&gt;JavaScript&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]] now &lt;/ins&gt;has &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;all the &lt;/ins&gt;JavaScript &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;liniks&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;** https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest - reference&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* {{l/wp|&lt;/del&gt;JavaScript&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}}: &lt;/del&gt;has &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;some code snippets&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;** https://developer.mozilla.org/en-US/docs/Web/&lt;/del&gt;JavaScript&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/Reference&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;** http://htmldog.com/guides/javascript/advanced/creatingelements/&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;** http://htmldog.com/guides/javascript/beginner/makingstuffhappen/&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[WebSockets]]:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[WebSockets]]:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** [https://github.com/kanaka/websockify/wiki websockify]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** [https://github.com/kanaka/websockify/wiki websockify]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=User:Woozle/two-way_http&amp;diff=21350&amp;oldid=prev</id>
		<title>Woozle: header() function</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=User:Woozle/two-way_http&amp;diff=21350&amp;oldid=prev"/>
		<updated>2015-12-07T02:20:01Z</updated>

		<summary type="html">&lt;p&gt;header() function&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:20, 7 December 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l17&quot;&gt;Line 17:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** http://httpd.apache.org/docs/2.2/rewrite/flags.html#flag_p&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** http://httpd.apache.org/docs/2.2/rewrite/flags.html#flag_p&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* https://www.meteor.com/tutorials/blaze/creating-an-app -- need to be able to serve this over https, somehow&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* https://www.meteor.com/tutorials/blaze/creating-an-app -- need to be able to serve this over https, somehow&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* http://php.net/manual/en/function.header.php - sending http headers&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Code==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Code==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This didn&amp;#039;t work (in .htaccess):&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This didn&amp;#039;t work (in .htaccess):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=User:Woozle/two-way_http&amp;diff=21348&amp;oldid=prev</id>
		<title>Woozle: dumping all the relevant stuff I can find, to clear it off</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=User:Woozle/two-way_http&amp;diff=21348&amp;oldid=prev"/>
		<updated>2015-12-07T02:10:21Z</updated>

		<summary type="html">&lt;p&gt;dumping all the relevant stuff I can find, to clear it off&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is mainly a quick tabdump of pages I had open while trying to figure out how to let a server push updates to a web browser, as described [https://plus.google.com/u/0/102282887764745350285/posts/YLkt2tQESB9 here]:&lt;br /&gt;
* https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest&lt;br /&gt;
** https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest - reference&lt;br /&gt;
* {{l/wp|JavaScript}}: has some code snippets&lt;br /&gt;
** https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference&lt;br /&gt;
** http://htmldog.com/guides/javascript/advanced/creatingelements/&lt;br /&gt;
** http://htmldog.com/guides/javascript/beginner/makingstuffhappen/&lt;br /&gt;
* [[WebSockets]]:&lt;br /&gt;
** [https://github.com/kanaka/websockify/wiki websockify]&lt;br /&gt;
** http://www.spice-space.org/ -- part of the toolkit for doing a virtual terminal via web (I think)&lt;br /&gt;
** http://stackoverflow.com/questions/11334320/using-websocket-on-apache-server&lt;br /&gt;
*** https://code.google.com/p/phpwebsocket/&lt;br /&gt;
**** https://code.google.com/p/phpwebsocket/source/browse/trunk/%20phpwebsocket/server.php - can this be adapted to just serve the output of a CLI script?&lt;br /&gt;
***** http://php.net/manual/en/function.socket-create.php - PHP socket functions&lt;br /&gt;
* Proxying with Apache:&lt;br /&gt;
** http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxyrequests&lt;br /&gt;
** http://httpd.apache.org/docs/2.2/rewrite/flags.html#flag_p&lt;br /&gt;
* https://www.meteor.com/tutorials/blaze/creating-an-app -- need to be able to serve this over https, somehow&lt;br /&gt;
==Code==&lt;br /&gt;
This didn&amp;#039;t work (in .htaccess):&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ProxyPass /meteor http://localhost:3000&lt;br /&gt;
ProxyPassReverse /meteor http://localhost:3000 &lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does work, for the front end:&lt;br /&gt;
&amp;lt;php&amp;gt;&lt;br /&gt;
	$out = &amp;#039;&amp;lt;div id=main&amp;gt;Hello Cruel World&amp;lt;/div&amp;gt;&amp;#039;;&lt;br /&gt;
	&lt;br /&gt;
	$out .= &amp;lt;&amp;lt;&amp;lt;__END__&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script&amp;gt;&lt;br /&gt;
console.log(&amp;quot;GOT TO HERE&amp;quot;);&lt;br /&gt;
  var ctMain = document.getElementById(&amp;#039;main&amp;#039;);&lt;br /&gt;
  ctMain.innerHTML = &amp;quot;Fetching page...&amp;lt;br&amp;gt;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
//  req.onload = function (event) {&lt;br /&gt;
  function evPageLoaded(event) {&lt;br /&gt;
    ctMain.innerHTML = req.responseText + &amp;#039;L&amp;#039;;&lt;br /&gt;
  };&lt;br /&gt;
  function evPageUpdate(event) {&lt;br /&gt;
    ctMain.innerHTML = req.responseText + &amp;#039;U&amp;#039;;&lt;br /&gt;
  };&lt;br /&gt;
  function evPageFailed(event) {&lt;br /&gt;
    ctMain.innerHTML = req.responseText + &amp;#039;Houston, we have a problem.&amp;#039;;&lt;br /&gt;
  }&lt;br /&gt;
  function evPageKilled(event) {&lt;br /&gt;
    ctMain.innerHTML = req.responseText + &amp;#039;Cancelled&amp;#039;;&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  var req = new XMLHttpRequest();&lt;br /&gt;
  &lt;br /&gt;
  req.addEventListener(&amp;quot;progress&amp;quot;, evPageUpdate);&lt;br /&gt;
  req.addEventListener(&amp;quot;load&amp;quot;, evPageLoaded);&lt;br /&gt;
//  req.addEventListener(&amp;quot;error&amp;quot;, transferFailed);&lt;br /&gt;
//  req.addEventListener(&amp;quot;abort&amp;quot;, transferCanceled);&lt;br /&gt;
  &lt;br /&gt;
//  req.open(&amp;#039;get&amp;#039;, &amp;#039;https://vbz.net/phpinfo.php&amp;#039;, true);&lt;br /&gt;
//  req.open(&amp;#039;get&amp;#039;, &amp;#039;https://vbz.net/ajax&amp;#039;, true);&lt;br /&gt;
  req.open(&amp;#039;get&amp;#039;, &amp;#039;http://vbz.net:3000&amp;#039;, true);&lt;br /&gt;
  req.send();&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
__END__;&lt;br /&gt;
	return $out;&lt;br /&gt;
&amp;lt;/php&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This gets dumped all at once when sent via Apache, but displays incrementally via CLI:&lt;br /&gt;
&amp;lt;php&amp;gt;&lt;br /&gt;
if (ob_get_level() == 0) ob_start();&lt;br /&gt;
&lt;br /&gt;
//header(&amp;#039;Content-Type: Multipart/mixed; boundary=&amp;quot;___BOUNDARY___&amp;quot;;&amp;#039;);&lt;br /&gt;
header(&amp;#039;Content-Type: multipart/x-mixed-replace; boundary=&amp;quot;___BOUNDARY___&amp;quot;;&amp;#039;);&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;\n&amp;quot;;&lt;br /&gt;
echo &amp;quot;___BOUNDARY___\n&amp;quot;;&lt;br /&gt;
echo &amp;quot;Content-Type: text/html; charset=utf-8\n&amp;quot;;&lt;br /&gt;
echo &amp;quot;\n&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
for ($count = 1; $count &amp;lt;= 10; $count++) {&lt;br /&gt;
    echo &amp;quot;\n&amp;quot;;&lt;br /&gt;
    echo &amp;quot;___BOUNDARY___\n&amp;quot;;&lt;br /&gt;
    echo &amp;quot;Content-Type: text/html; charset=utf-8\n&amp;quot;;&lt;br /&gt;
    echo &amp;quot;\n&amp;quot;;&lt;br /&gt;
    echo &amp;quot;$count&amp;lt;br&amp;gt;\n&amp;quot;;&lt;br /&gt;
    //echo str_pad(&amp;#039;&amp;#039;,8192).&amp;quot;\n&amp;quot;;&lt;br /&gt;
    ob_flush();&lt;br /&gt;
    flush();&lt;br /&gt;
    usleep(500000);&lt;br /&gt;
}&lt;br /&gt;
echo &amp;quot;___BOUNDARY___\n&amp;quot;;&lt;br /&gt;
ob_end_flush();	&lt;br /&gt;
&amp;lt;/php&amp;gt;&lt;/div&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
</feed>