title: IceCast stream authentication
body: <p>I'm using Icecast 2.3.3.</p>
  
  <p>I want to use URL stream authentication, the problem is that the authentication server url is not called by Icecast server and i don't know why. The Icecast server runs on Linux machine on Azure, the auth server is Azure Web App. I tried different configurations and i got unexpected errors.
  First, for:</p>
  
  <pre><code>&lt;mount type="normal"&gt;
      &lt;mount-name&gt;/local.ogg&lt;/mount-name&gt;
      &lt;authentication type="url"&gt;
          &lt;option name="stream_auth" value="http://localhost/"/&gt;
      &lt;/authentication&gt;
  &lt;/mount&gt;
  </code></pre>
  
  <p>I got this error (which I understand):</p>
  
  <pre><code>[2015-05-13  18:36:52] EROR connection/_handle_connection HTTP request parsing failed
  [2015-05-13  18:36:52] WARN auth_url/url_stream_auth auth to server http://localhost/ failed with Failed to connect to localhost port 80: Connection refused
  [2015-05-13  18:36:52] WARN auth/stream_auth_callback Failed auth for source "/local.ogg"
  </code></pre>
  
  <p>Then, for:</p>
  
  <pre><code>&lt;mount type="normal"&gt;
      &lt;mount-name&gt;/ip.ogg&lt;/mount-name&gt;
      &lt;authentication type="url"&gt;
          &lt;option name="stream_auth" value="http://123.45.67.89/"/&gt;
      &lt;/authentication&gt;
  &lt;/mount&gt;
  </code></pre>
  
  <p>Again, the error, as I expected is (this ip is random):</p>
  
  <pre><code>[2015-05-13  18:37:34] EROR connection/_handle_connection HTTP request parsing failed
  [2015-05-13  18:37:35] WARN auth_url/url_stream_auth auth to server http://123.45.67.89/ failed with Connection timed out after 15008 milliseconds
  [2015-05-13  18:37:35] WARN auth/stream_auth_callback Failed auth for source "/ip.ogg"
  </code></pre>
  
  <p>But then, when I want to use my Web App</p>
  
  <pre><code>&lt;mount type="normal"&gt;
      &lt;mount-name&gt;/blast.ogg&lt;/mount-name&gt;
      &lt;authentication type="url"&gt;
          &lt;option name="stream_auth" value="http://blast.azurewebsites.net/"/&gt;
      &lt;/authentication&gt;
  &lt;/mount&gt;
  </code></pre>
  
  <p>I don't get an error that would explain to me what's wrong</p>
  
  <pre><code>[2015-05-13  18:38:29] EROR connection/_handle_connection HTTP request parsing failed
  [2015-05-13  18:38:30] WARN auth/stream_auth_callback Failed auth for source "/blast.ogg"
  </code></pre>
  
  <p>Is there anything I should know about Icecast stream_auth function? Or maybe I have to set up my VM with Icecast differently?</p>
  
  <p>If anyone have a working example of use of stream_auth, that would also be appreciated.</p>