Kodi Community Forum

Full Version: Radio stream with http authentication not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
*** XBMC 10.0 Dharma, on Apple TV (first generation) ***

I have subscribed to my favorite radio station, ASF radio. They provide a high quality stream for subscribed members by adding a username and password to the URL.

I'm using .strm files to access my custom radio URLs. This works for any public stream not requiring authentication, like
http://CKKQ.streamon.fm:8000/CKKQ-48k.aac
http://38.107.220.164:8030

The public stream for ASF also works fine, it's is this URL:
http://208.85.240.84:80

The problem arises when I try to use the URL for my subscription, which includes user and password. ASF offers 2 different formats:
http://www.asfradio.com/device.asp?u=USE...ORD&s=west
http://USERNAME:[email protected]/west.asp

When I try to play any of these URLs in XBMC, I hear a short start (1/2 second), and then just silence... The URLs work fine in winamp, iTunes, etc... When using the wrong username and password, the system sends a standard 32K or 64K stream, with current subscription username the server sends a higher quality stream.

Any help is greatly appreciated.
/Hermann
I just tested this again with the latest nightly build, to see if it makes any difference with my issue. But no luck so far.

Does anybody have any idea what else I could test? Or is there a different method of playing custom URLs in XBMC then using .strm files?
I would test from a comanmnd line using curl. Try first grabbing the stream without a password then again with the password.

When I try to open:
Code:
http://www.asfradio.com/device.asp?u=USERNAME&p=PASSWORD&s=west

I get:

Code:
HTTP/1.1 302 Object moved
Connection: close
Date: Wed, 09 Mar 2011 09:07:05 GMT
Server: Microsoft-IIS/6.0
MicrosoftOfficeWebServer: 5.0_Pub
Location: http://www.atlanticsoundfactory.com/launch/
Content-Length: 164
Content-Type: text/html
Set-Cookie: ASPSESSIONIDASATTTTC=GKPDCFJDEDMPDBCBOCNGLOEN; path=/
Cache-control: private

<head><title>Object moved</title></head>
<body><h1>Object Moved</h1>This object may be found <a HREF="http://www.atlantic
soundfactory.com/launch/">here</a>.</body>

so this isn't a valid address for a .strm file.

JR
JR,
Thanks for the tip. I did some tests with curl, and shared the results with the owner of the radio station.

He told me:
Yep - The ASP page will take your IP address, add it to the database of allowed IPs for the VIP servers, then redirect to the VIP stream.
Looks like their system doesn't obey HTTP redirects

Is there any way in xbmc to play streams with such redirects?
hjt61 Wrote:Is there any way in xbmc to play streams with such redirects?

I suspect you would have to write a Python script to play the stream.

JR