Useragent: obtains information about a user's browser through a browser.

Source: Internet
Author: User
Meaning of User Agent
The Chinese name of the user agent is the user agent (UA), which is a special string header, the server can identify the operating system and version, CPU type, browser and version, browser rendering engine, browser language, and browser plug-in used by the customer.
Some websites often send different pages to different operating systems and browsers by judging the UA. Therefore, some pages may not be displayed normally in a browser, however, you can bypass detection by disguising UA.
UA string of the browser
Standard Format: browser ID (Operating System ID; encryption level ID; browser language) Rendering Engine ID version information
Browser ID
Because many websites ignore the two-digit version number during UA detection, the browser and later versions may receive bad pages, therefore, in Versions later than 10 of the browser, the browser identifier is fixed as the browser, and real version information is added at the end of the UA string. Java usage:
1 useragent = useragent. parseuseragentstring (request. getheader ("User-Agent"); 2 browser = useragent. getbrowser (); 3 operatingsystem OS = useragent. getoperatingsystem ();
You can obtain browsers of almost all systems, including mobile phones and tablets. Document and: https://code.google.com/p/user-agent-utils/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.