<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Icecast and streaming media</title>
		<link>http://www.allegro.cc/forums/view/597395</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sun, 17 Aug 2008 20:14:51 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>What is a good free server software that can allow authenticated people to log in and use their broadcast their audio/video recordings (ie. microphone/webcam) through the website with HTTP? Also it should only allow particular listeners who are authorised via the web server (mod_python).</p><p>I&#39;ve somewhat got Icecast working, but is it only suited to public Internet radio?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Archon)</author>
		<pubDate>Sat, 16 Aug 2008 10:58:33 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p><a href="http://www.icecast.org/docs/icecast-2.3.2/icecast2_listenerauth.html">http://www.icecast.org/docs/icecast-2.3.2/icecast2_listenerauth.html</a></p><p>rtfm, noob. <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (BAF)</author>
		<pubDate>Sun, 17 Aug 2008 06:18:30 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I have read that and my question is how does the Icecast server and the Apache server match the same user...</p><p>Django&#39;s sessions are based off cookies that store the session ID on the client computer. So how would the Icecast server get the session ID and password from the client in order for the Icecast server to validate it with the Apache server?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Archon)</author>
		<pubDate>Sun, 17 Aug 2008 13:35:49 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You specify a certain header that your Apache script sends back to icecast if they are authorized.</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
auth_header</p><p>The expected response header to be returned that allows the authencation to take place may be specified here. The default is</p><p>icecast-auth-user: 1</p><p>but it could can anything you like, for instance</p><p>HTTP 200 OK
</p></div></div><p>

Assuming you go with the first option, icecast-auth-user: 1, then the Apache script just has to send that back.</p><div class="source-code snippet"><div class="inner"><pre><span class="k3">&lt;</span>?php
<span class="k1">if</span><span class="k2">(</span>user_is_authorized<span class="k2">)</span> header<span class="k2">(</span><span class="s">"icecast-auth-user: 1"</span><span class="k2">)</span><span class="k2">;</span>
<span class="k1">else</span> header<span class="k2">(</span><span class="s">"icecast-auth-message: &lt;reason they are unauthorized&gt;"</span><span class="k2">)</span><span class="k2">;</span>
?<span class="k3">&gt;</span>
</pre></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (BAF)</author>
		<pubDate>Sun, 17 Aug 2008 20:14:51 +0000</pubDate>
	</item>
</rss>
