The problem here comes down to the request headers. This server is using some crafty detection of browsers and non-browsers to help determine whether or not to redirect you to the real stream URL or not.
If you make a request for http://jam-aacp.rautemusik.fm/ with this header, you will get the .pls
file:
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Now, if you request the same URL without this header, you get a 302 redirect to the actual stream URL at http://80.237.157.12:12005/
.
This server at 80.237.157.12:12005 is running SHOUTcast, which has its own detection. Instead of Accept
header though, it uses User-Agent
. If the user-agent string contains "Mozilla
", then the server will send you the admin interface. Otherwise, it will send you the stream data.
In short, you need to make your requests without an Accept
header, and with a User-Agent
that does not contain Mozilla
. By the way, you can easily figure this out yourself and reproduce the problem by downloading a copy of Fiddler.