To configure the MIME type of IIS
Open IIS, Web site properties--http header--mime type
Registering MIME Types
Name extension MIME type
. wbmp Image/vnd.wap.wbmp
. WML TEXT/VND.WAP.WML
. WMLC APPLICATION/VND.WAP.WMLC
. wmls Text/vnd.wap.wmlscript
. WMLSC APPLICATION/VND.WAP.WMLSCRIPTC
. WSC APPLICATION/VND.WAP/WMLSCRIPTC
WAP Website test method
Platform: Windows 2003 sserver Service Pack 1 + IIS 6.0
Network: ADSL + router (tp-link)
1. Router Port mapping
Relocate access to the WAN service port to the specified IP address machine.
Native Intranet ip:192.168.1.101
ip:125.110.9.30 of routers (extranet)
2. Mobile Internet GPRS transmission mode.
Mobile Access Address: HTTP://125.110.9.30/WAP/INDEX.WML
Copy Code code as follows:
<?xml version= "1.0" encoding= "UTF-8"?>
<! DOCTYPE WML public "-//wapforum//dtd WML 1.1//en" "Http://www.wapforum.org/DTD/wml_1.1.xml" >
<wml>
<card title= "Little Apple" >
<p>hello world!</p>
</card>
</wml>
Note the file encoding.
The virtual host says its space supports WAP, but does not support WML files. Mobile access to WML files always show an unknown file format, the estimated IIS does not set, it can be fooled.