[MPlayer-dev-eng] [PATCH] Selectable User-Agent for HTTP transfers

Alex Beregszaszi alex at fsn.hu
Wed Oct 22 19:51:26 CEST 2003


Hi,

> This patch adds the option -user-agent for HTTP-streaming. It is
> needed for the 100s of radiostations hosted by
> http://www.surfernetwork.com and I'm sure there are others.
> A bunch of the SurferNetwork's stations can be found at 
> http://www.web-radio.com, the symbol "(SN)".  SN uses a custom player 
> which uses encrypted streams, but reading the information they say
> they also support iTunes on MacOS.. After some investigation I found
> that you get an unencrypted MP3-stream if you connect to 
> http://rd1.surfernetwork.com:443/call-id/bitrate and send the header 
> "User-Agent: iTunes/4.0 (Macintosh; N; PPC)".
> 
> Apply this patch and you can listen to the streams like this:
> $ mplayer http://rd1.surfernetwork.com:443/buzz/24 -user-agent 
> "iTunes/4.0 (Macintosh; N; PPC)"
> for the station with call-id "buzz", bitrate 24.
> 
> I hope to see this in 1.0! It's a very small and simple patch and may
> be needed for more streams than SN's!
Applied with modifications.

-- 
Alex Beregszaszi <alex at fsn.hu>
(MPlayer Core Developer -- http://www.mplayerhq.hu/)



More information about the MPlayer-dev-eng mailing list