I used to be able to use wget to capture streams from my favorite online radio
station. They seem to have upgraded their Shoutcast server, however, and now
I'm having problems.
I used to be able to just pull the URL from the .pls file, point wget to that,
and everything was happy. Now, however, it seems to be running a web server
and a mp3 stream on the same port. It differentiates between browser requests
and mp3 player streaming requests by checking the user-agent string (which is
stupid, but oh well). Fine, whatever, so I set the user-agent to Winamp's. But
now, I get this:
jinx: /tmp> wget -U Winamp/2 http://streaming.host/ -O test.mp3
--16:21:55-- http://streaming.host/
=> `test.mp3'
Resolving streaming.host... done.
Connecting to streaming.host[IP ADDRESS]:80... connected.
HTTP request sent, awaiting response...
16:21:55 ERROR -1: Malformed status line.
I'm assuming what's happening is that if Shoutcast thinks it's talking to an
MP3 player, it dispenses with niceties like HTTP headers and just starts
barfing the stream right at the client, freaking wget out. So... is there a
way I can tell wget this is a binary stream and to just start dumping
everything it gets to a file?
--
----------------------------------------------------------------------------
Kim Scarborough http://www.unknown.nu/kim/
----------------------------------------------------------------------------
"I was so naive as a kid, I used to sneak behind the barn and do nothing."
-Johnny Carson
----------------------------------------------------------------------------
