UserAgent and device, UserAgent Device

Source: Internet
Author: User
Tags website server

UserAgent and device, UserAgent Device

When a browser requests a webpage, A useragent (User Agent) is added before the url ).

PS: As a browser, you can do a lot of work on this useragent string. It can create many bugs or reduce many bugs. The only taste is yourself.



Let's talk about the distinction between Android phones and android pad ua.

Note: The ipad's pad ua is different from the android pad's pad ua, which is very obvious in some chrome versions.


If the useragent string contains "android", the website server identifies it as an android device for access. If the string contains "moblie, the website server considers it an android mobile phone to request a webpage. Otherwise, it considers it an android pad to request a webpage.

Related Article

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.