TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

History of the browser user-agent string

100 pointsby bhaisaabover 11 years ago

13 comments

pornelover 11 years ago
And now we have Chromium-based Opera which can&#x27;t call itself Opera and has to use &quot;OPR&#x2F;16&quot; instead, and pretends to be Chrome, which pretends to be Safari, which pretends to be KHTML, which pretends to be Gecko, which pretends to be Netscape.<p>On a related note W3C+Mozilla are trying to document use-cases for UA sniffing: <a href="https://etherpad.mozilla.org/uadetection-usecases" rel="nofollow">https:&#x2F;&#x2F;etherpad.mozilla.org&#x2F;uadetection-usecases</a>
评论 #6678424 未加载
评论 #6676719 未加载
patrickmayover 11 years ago
My user agent is &quot;Drakma&#x2F;1.3.0 (SBCL 1.1.5; Darwin; 12.2.0; <a href="http://weitz.de/drakma/)&quot;" rel="nofollow">http:&#x2F;&#x2F;weitz.de&#x2F;drakma&#x2F;)&quot;</a>. I like to keep webmasters on their toes.
评论 #6675667 未加载
评论 #6675690 未加载
gnurover 11 years ago
The real question is, is this still needed in the modern web? I have never used the user agent to serve different content. I do expect that some sites still use the user agent for detection of mobile browsers but that is also deprecated for people with common sense..
评论 #6675420 未加载
评论 #6675248 未加载
评论 #6679488 未加载
评论 #6679001 未加载
评论 #6676474 未加载
philbarrover 11 years ago
A great explanation that also made me laugh. I&#x27;ve never really thought of the browser vendors trying to impersonate each other before; sort of, &quot;competing&quot; for content. I always thought they just did what they liked and we all had to hack around it.
评论 #6675303 未加载
ozhover 11 years ago
All this was meant to fund Senior JAVA Dev jobs like this one: <a href="http://thedailywtf.com/Articles/The-Enterprise-User-Agent.aspx" rel="nofollow">http:&#x2F;&#x2F;thedailywtf.com&#x2F;Articles&#x2F;The-Enterprise-User-Agent.as...</a>
评论 #6676733 未加载
评论 #6675550 未加载
tankenmateover 11 years ago
Actually this history has one minor mistake (there may be more); Microsoft didn&#x27;t make their own web browser, well at least not initially, they licensed their code from Spyglass.
pilifover 11 years ago
<i>&gt; And Internet Explorer supported frames, and yet was not Mozilla, and so was not given frames.</i><p>I don&#x27;t think that is correct. IE 2 didn&#x27;t support frames. IE 3 did, but 2 didn&#x27;t. I remember waiting for IE3 to get more market share so that I could safely use frames.<p>I can&#x27;t tell you what feature made them fake the user agent, but it wasn&#x27;t frame support.<p>Yeah. Those were the days :-)
ronancreminover 11 years ago
The author reaches a trite conclusion uninformed by facts. The user agent string is used by at least 90+% of the Alexa 100 to improve user experience.<p>There is a silent evidence problem here. Successful use of the user agent string improves the user experience but goes unnoticed; failures are very apparent.<p>From the article:<p>&quot;user agent string was a complete mess, and near useless&quot;<p>vs.<p><a href="https://etherpad.mozilla.org/uadetection-usecases" rel="nofollow">https:&#x2F;&#x2F;etherpad.mozilla.org&#x2F;uadetection-usecases</a><p>His conclusion is a bit like saying &quot;I don&#x27;t see why I need ABS in this car because I&#x27;ve never skidded since I got it.&quot;
iLochover 11 years ago
Sounds like we could really use a &quot;User-Agent-Features&quot; header or something similar. Or we just say screw it and make a new standard for the User-Agent header, then users can run in compatibility mode when needed.
Cthulhu_over 11 years ago
I haven&#x27;t had to deal with user agents in a while, thankfully. Except today; the client wants the user to be presented the mobile site we built, or the old desktop site, depending on user agent. I&#x27;m not going to parse no user agent strings though - there&#x27;s an open source library &#x2F; database called WURFL [1] that can do all those things. Hopefully.<p>[1] <a href="http://wurfl.sourceforge.net/" rel="nofollow">http:&#x2F;&#x2F;wurfl.sourceforge.net&#x2F;</a>
Spoomover 11 years ago
The pseudo-Biblical writing style reminds me of The Book of Mozilla[1], perhaps the coolest browser easter egg in existence, which, sadly, Chrome decided not to implement.<p>1. <a href="http://en.wikipedia.org/wiki/The_Book_of_Mozilla" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;The_Book_of_Mozilla</a>
toblenderover 11 years ago
Wow this is awesome, it answers so many questions.<p>I&#x27;m actually surprised that Mozilla didn&#x27;t sue the other browser for using its name in their User-agent browser. This may have secured Mozilla&#x27;s place as #1.
angersockover 11 years ago
And then mobile happened, and everything was fucked forever.<p>:(