2005-08-31, 16:02
when i stream a file through xbmc using the xbmc.player().play("[url]http://38.39.23.24/stream/stream.asx"[/url]) method.. it always sends 'xbmc-mplayer/1.1.0(mpeg)' as the user-agent to the webserver, and the get-requests looks like this in the webserver-logs:
is there any possibility to spoof this user-agent, so the webserver sees an windows media player request?
this seems to be possible for normal url-gets (like in the following examle). does anyone know if this works for streams too?
Quote:38.39.23.23 - user1 [30/aug/2005:22:39:21 +0100] "get /streams/stream.asx http/1.0" 200 143088 "-" "[b]xbmc-mplayer/1.1.0(mpeg)[/b]"
is there any possibility to spoof this user-agent, so the webserver sees an windows media player request?
this seems to be possible for normal url-gets (like in the following examle). does anyone know if this works for streams too?
Quote:urldata = none
urlheaders = {
'user-agent': 'mozilla/4.0 (compatible; msie 6.0; windows nt 5.1; sv1; .net clr 1.1.4322)',
'accept-language': 'en-us',
}
urllib.urlopen(url,urldata, urlheaders)