News for hackers. Stuff that matters.
Re:User-agent string changes by nly on Saturday November 22, 2014 @10:48AM (#8645763)
We'd all be better off if they just stopped sending the UA string altogether
Re:User-agent string changes by guardian5x on Saturday November 22, 2014 @11:06AM (#8645819)
So much this. The UA string is flawed by itself. it shouldn't even be used anymore. The fact that browser manufacturers have to include all sorts of stuff is proof that this system doesn't work.
Re:User-agent string changes by kabdib on Saturday November 22, 2014 @11:05AM (#8645814)
These strings make the parser guy in me just twitch. Do they expect many, many web developers to reliably extract accurate meaning from them?
Re:User-agent string changes by dangrossman on Saturday November 22, 2014 @11:50AM (#8645938)
Most developers would find and use a library rather than write their own parser. They pretty reliably extract the browser/version/platform/etc from the hundreds of thousands of UA strings you'll see in the wild.

https://github.com/tobie/ua-parser

https://github.com/browscap/browscap

A user agent parser is built in to the PHP language as well.

http://php.net/manual/en/function.get-browser.php

Re:User-agent string changes by xg15 on Saturday November 22, 2014 @07:32PM (#8647269)
I think it's the other way around. This happens when a field that no-one ever defined a syntax for suddenly gets important and everyone tries to extract meaning from it using arbitrary contains() and substring() acrobatics...
Re:User-agent string changes by kabdib on Sunday November 23, 2014 @08:22PM (#8650613)
So it's organic and ill-defined . . . and people are parsing it. Lovely :-)