PDA

View Full Version : How do I connect to a stream that requires a password



friendlyfire
2008-04-04, 17:20
Hi, this should be simple, but so far I haven't figured out how to do it. One of my favorite streams requires a (publicly avaiable) login ID and password. I can log in to this stream with my PC no problem, but my Squeezebox won't play it, presumably because it does not properly authenticate. I figure there is probably a way to embed the login info right into the URL but I don't know the syntax.

The stream I am interested in is:

radio.roguefolk.bc.ca:8000/listen.m3u

Username: Radio Rogue
Password: [removed by Admin]
(include the exclamation mark and capitalization

thanks!

radish
2008-04-04, 19:31
The format is:



http://<username>:<password>@<url...>

friendlyfire
2008-04-04, 21:26
yes, thanks for the reply
Unfortunately I can't get it working, at least not for this particular stream. The username and password are complicated by spaces and an exclamation mark in the login id/password, but I think I have these converted to proper URL format. IE keeps returning a "cannot find site, check spelling" type of error.

The URL I have arrived at is

"http://Radio%20Rogue:Roots%20Radio!@radio.roguefolk.bc.ca :8000/listen.m3u"
but it seems to resolve to this, which doesn't look right
http://Radio%20Rogue:Roots%20Radio!@radio.roguefolk.bc.ca :8000/listen.m3u

does anyone see an obvious problem with this?

admin: please note that this password is publicly distributed by the owner of the stream at roguefolk.bc.ca. If you like I can delete the specifics as soon as I solve this problem. Thanks!

SuperQ
2008-04-04, 21:59
Hrm, I was able to get this to work in wget, but my squeezebox gives me auth required error. It sounds like a bug in the firmware that doesn't allow spaces in the username/password. According to RFC (http://www.ietf.org/rfc/rfc2396.txt) escaped spaces are allowed in the userinfo (user:password) field. Even the '!' is allowed. I think this is going to have to be fixed by Logitech.

http://Radio%20Rogue:Roots%20Radio!@radio.roguefolk.bc.ca :8000/listen