[mythtv-users] BBC iPlayer website request fetches mobile site
Nicolas Riendeau
knight at teksavvy.com
Tue Aug 9 23:23:42 UTC 2011
Hi!
On 8/9/2011 7:05 PM, Paul Harrison wrote:
> The BBC must be looking at the user-agent string being passed by Qt
> Webkit and assuming wrongly that the browser is running on a mobile.
> It's easy to fake a user-agent string just by overriding
> QWebPage::userAgentForUrl(const QUrl&url).
>
> I've just made this change locally and it works fine it's just a few
> devs tend to get their knickers in a twist when something like this is
> discussed so not sure if it can be committed. Obviously the Qt devs
> think it's OK to fake the user-agent string otherwise they wouldn't make
> it so easy to do so.
Do you have to pretend to be something it is not (Firefox, Opera, ie,
etc...) or simply changing the default string for something else works?
If it does maybe identifying the browser as MythBrowser could be an
acceptable solution?
Have a nice day!
Nick
More information about the mythtv-users
mailing list