<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>&gt; Date: Tue, 9 Aug 2011 20:33:36 -0400<br>&gt; From: afc@shibaya.lonestar.org<br>&gt; To: mythtv-users@mythtv.org<br>&gt; Subject: Re: [mythtv-users] BBC iPlayer website request fetches mobile site<br>&gt; <br>&gt; On Tue, Aug 09, 2011 at 07:23:42PM -0400, Nicolas Riendeau wrote:<br>&gt; &gt; Hi!<br>&gt; &gt; <br>&gt; &gt; On 8/9/2011 7:05 PM, Paul Harrison wrote:<br>&gt; &gt; &gt; The BBC must be looking at the user-agent string being passed by Qt<br>&gt; &gt; &gt; Webkit and assuming wrongly that the browser is running on a mobile.<br>&gt; &gt; &gt; It's easy to fake a user-agent string just by overriding<br>&gt; &gt; &gt; QWebPage::userAgentForUrl(const QUrl&amp;url).<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I've just made this change locally and it works fine it's just a few<br>&gt; &gt; &gt; devs tend to get their knickers in a twist when something like this is<br>&gt; &gt; &gt; discussed so not sure if it can be committed. Obviously the Qt devs<br>&gt; &gt; &gt; think it's OK to fake the user-agent string otherwise they wouldn't make<br>&gt; &gt; &gt; it so easy to do so.<br>&gt; &gt; <br>&gt; &gt; Do you have to pretend to be something it is not (Firefox, Opera, ie, <br>&gt; &gt; etc...) or simply changing the default string for something else works? <br>&gt; &gt; If it does maybe identifying the browser as MythBrowser could be an <br>&gt; &gt; acceptable solution?<br>&gt; <br>&gt; This discussion comes at the perfect time for me!  Although not related<br>&gt; to MythTV, I'm having problems with google+: it claims my browser is too<br>&gt; old and I can't do anything.  It was suggested that I change the user<br>&gt; string, and for that I installed the user agent switcher available for<br>&gt; firefox.  It seems to work but the sample file that comes with it is<br>&gt; too old, so my question is: what is the user string of the latest<br>&gt; firefox?  Obviously I don't want to get into upgrading firefox.<br>&gt; <br>&gt; This is the sample file:<br>&gt; <br>&gt; <br>&gt; &lt;useragentswitcher&gt;<br>&gt; &lt;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=""/&gt;<br>&gt; &lt;/useragentswitcher&gt;<br>&gt; <br>&gt; I suspect that some consistency checks are done for known versions, so<br>&gt; just changing these fields to "best guess" values is likely not to work.<br>&gt; <br>&gt; I'm using Iceweasel 3.0.6 (Firefox renamed because of Debian political<br>&gt; issues) and it's too old for google+.<br>&gt; <br>&gt; Does anyone know what values should go into the different fields above?<br>&gt; <br>&gt; Thanks.<br>&gt; <br>&gt; Augustine<br>&gt; <br>&gt; _______________________________________________<br>&gt; mythtv-users mailing list<br>&gt; mythtv-users@mythtv.org<br>&gt; http://www.mythtv.org/mailman/listinfo/mythtv-users<br></div>                                               </div></body>
</html>