<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
On this Macbook pro I've got the UA string for Firefox 5 is this:<br><br>Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0.1) Gecko/20100101 Firefox/5.0.1<br><br>At least that's what PHP sees when you ask for the $_SERVER['HTTP_USER_AGENT'] which should be the initial part.<br><br>Col P<br><br><div>> Date: Tue, 9 Aug 2011 20:33:36 -0400<br>> From: afc@shibaya.lonestar.org<br>> To: mythtv-users@mythtv.org<br>> Subject: Re: [mythtv-users] BBC iPlayer website request fetches mobile site<br>> <br>> On Tue, Aug 09, 2011 at 07:23:42PM -0400, Nicolas Riendeau wrote:<br>> > Hi!<br>> > <br>> > On 8/9/2011 7:05 PM, Paul Harrison wrote:<br>> > > The BBC must be looking at the user-agent string being passed by Qt<br>> > > Webkit and assuming wrongly that the browser is running on a mobile.<br>> > > It's easy to fake a user-agent string just by overriding<br>> > > QWebPage::userAgentForUrl(const QUrl&url).<br>> > ><br>> > > I've just made this change locally and it works fine it's just a few<br>> > > devs tend to get their knickers in a twist when something like this is<br>> > > discussed so not sure if it can be committed. Obviously the Qt devs<br>> > > think it's OK to fake the user-agent string otherwise they wouldn't make<br>> > > it so easy to do so.<br>> > <br>> > Do you have to pretend to be something it is not (Firefox, Opera, ie, <br>> > etc...) or simply changing the default string for something else works? <br>> > If it does maybe identifying the browser as MythBrowser could be an <br>> > acceptable solution?<br>> <br>> This discussion comes at the perfect time for me! Although not related<br>> to MythTV, I'm having problems with google+: it claims my browser is too<br>> old and I can't do anything. It was suggested that I change the user<br>> string, and for that I installed the user agent switcher available for<br>> firefox. It seems to work but the sample file that comes with it is<br>> too old, so my question is: what is the user string of the latest<br>> firefox? Obviously I don't want to get into upgrading firefox.<br>> <br>> This is the sample file:<br>> <br>> <br>> <useragentswitcher><br>> <useragent description="Firefox 2 (Windows XP)" useragent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0" appname="Netscape" appversion="5.0 (Windows; en-US)" platform="Win32" vendor="" vendorsub=""/><br>> </useragentswitcher><br>> <br>> I suspect that some consistency checks are done for known versions, so<br>> just changing these fields to "best guess" values is likely not to work.<br>> <br>> I'm using Iceweasel 3.0.6 (Firefox renamed because of Debian political<br>> issues) and it's too old for google+.<br>> <br>> Does anyone know what values should go into the different fields above?<br>> <br>> Thanks.<br>> <br>> Augustine<br>> <br>> _______________________________________________<br>> mythtv-users mailing list<br>> mythtv-users@mythtv.org<br>> http://www.mythtv.org/mailman/listinfo/mythtv-users<br></div>                                            </div></body>
</html>