Firefox creates a mobile WAP website test environment

Source: Internet
Author: User
Tags user agent switcher

Reprinted from:
Http://www.umtry.com/201106/firefox%E6%89%93%E9%80%A0%E6%89%8B%E6%9C%BAwap%E7%BD%91%E7% AB %99%E6%B5%8B%E8%AF%95%E7%8E%AF%E5%A2%83.html5

1. Download and install Firefox (required)

2. Install Firefox additional components-> modify headers additional components.

3. Install Firefox additional components-> User Agent switcher additional components.

4. After the installation is complete, restart Firefox. The two extensions are already in the toolbar.

5. now we need to add an X-wap-profile HTTP header. Most smart mobile sites will determine the mobile devices used by visitors based on this header. Currently, only the iPhone does not support HTTP headers, you can use a search engine to search for the uaprof URL Lis. There will be many and the most ideal search place is Motorola's library.
The following is a UA profile URL of Nokia e71:
Http://nds1.nds.nokia.com/uaprof/NE71-1r100.xml

6. Open modify Headers

@ Select Add from the drop-down list.

@ Fill in X-wap-profile in the first box.

@ Paste the UA profile URL for the Nokia e71 file address or the UA address you searched.

@ Comments

After filling in the information, click the Add button on the right. A new message is displayed below.

6. To implement real mobile browsing in Firefox, We need to configure the user agent to search for "Nokia e71 user agent" or the user agent of other mobile devices. The e71 is like this:

 
Mozilla/5.0 (symbianos/9.2; U; series60/3.1 NokiaE71-1/110.07.127; profile/MIDP-2.0 configuration/CLDC-1.1) app
 
7. In this case, the user agent switcher will be used. Open tools> Default User Agent> User Agent switcher> options in the following path:
 
 
 
 
 
8. Select New
 
 

9. paste the user agent of e71, give a name, and save it.
In this case, the default user agent has an additional item named "Nokia e71 user agent". Clicking it will allow Firefox to simulate the e71 environment.

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.