[MPlayer-dev-eng] [wigren at home.se: [PATCH] Selectable User-Agent for HTTP transfers]

Per Wigren wigren at home.se
Tue Oct 21 22:50:34 CEST 2003


On Thursday 16 October 2003 01:12, Dave Lambley wrote:
> This patch contains Per Wigren's text instead, in the right place
> hopefully.
>
> > Hmm, what about the version that Per Wigren (IIRC) sent?  It also
> > implemented -user-agent..  What are the differences, which one is
> > better?
>
> Mine :). My patch is Per Wigren's, with the addition of some code to
> detect the user agent screening Surfer Network does, and make it try
> again claiming to be iTunes.

No mine! :)
IMHO, the retry-with-another-useragent-hack is ugly. If it's included it 
should be turned off by default. 
My patch is clean and only adds a "-user-agent" option, nothing more, nothing 
less. :)
Sites requiring a special useragent has all kinds of tricks to make it hard to 
find the stream anyway.. To find out how to play the surfernetwork streams I 
had to read 100 KB worth of JavaScript and use a network sniffer (ethereal) 
while running windows in VMWare.. :P
I'm working on a free webradio database (http://webradio.sf.net - not much 
there yet), GUI-frontend and Freevo plugin, that's why I made this patch. :)  
To play the streams from www.real365.com I have to have a separate thread 
sending fake cookies to their webserver every 15 minutes to keep the stream 
going :)

// Wigren



More information about the MPlayer-dev-eng mailing list