Using Google Chrome to simulate a mobile browser

Source: Internet
Author: User

Many websites use User-agent to judge the browser type, if it is a 3G mobile phone, display the contents of the mobile page, if it is a normal browser, display ordinary Web content.

Google Chrome browser can be easily used when 3G phone simulator. In Windows "Start" –> "Run" Enter the following command, launch Google Browser, you can simulate the corresponding phone browser to visit the 3G Mobile Web page:

Google Android:

Chrome.exe–user-agent= "mozilla/5.0 (Linux; U Android 2.2; En-us; Nexus one build/frf91) applewebkit/533.1 (khtml, like Gecko) version/4.0 Mobile Safari/533.1″

Apple iphone:

Chrome.exe–user-agent= "mozilla/5.0 (IPad; U CPU os 3_2_2 like Mac os X; En-US) applewebkit/531.21.10 (khtml, like Gecko) version/4.0.4 mobile/7b500 Safari/531.21.10″

Nokia N97:

Chrome.exe–user-agent= "mozilla/5.0 (symbianos/9.4; series60/5.0 nokian97-1/20.0.019; profile/midp-2.1 configuration/cldc-1.1) applewebkit/525 (khtml, like Gecko) Browserng/7.1.18124″

Try it with Android, IPhone, Nokia access http://www.163.com/, http://blog.s135.com/, http://www.google.com.hk/, HTTP/ 3g.qq.com, http://t.sina.cn these 3G mobile Web pages to see what's different.

More user-agent:http://www.zytrax.com/tech/web/mobile_ids.html for mobile phones

Note: If you want to switch back to normal browser mode, turn off all chrome browsers and re-open. If you do not want to close the browser and switch back to normal browser mode, then visit:

Chrome.exe–user-agent= "mozilla/5.0 (Windows; U Windows NT 5.1; En-US) applewebkit/534.3 (khtml, like Gecko) chrome/6.0.472.63 Safari/534.3″

Using Google Chrome to simulate a mobile browser

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.