IIS配置WAP及浏览


Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58

1,IIS为WAP已经提供了支持,只是不是默认,需要手动添加MIME映射。
操作方法:
IIS--网站属性-->http 头-->MIME映射 -->文件类型 -->新类型 添加:
.wml text/vnd.wap.wml
.wmlc application/vnd.wap.wmlc
.wmls text/vnd.wap.wmlscript
.wmlsc application/vnd.wap.wmlscriptc
.wbmp image/vnd.wap.wbmp

2,IE,FireFox不支持WAP页面的展示, 打开页面时会提示保存或显示源码
对于FireFox可以利用安装插件解决:分别是:wmlbrowser、XHTML Mobile Profile以及User Agent Switcher
对于IE:
将如下代码用记事本保存为.reg注册表文件

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\MIME\Database\Content Type\text/vnd.wap.wml]
“CLSID”=”{25336920-03F9-11cf-8FD0-00AA00686F13}”

双击运行您保存好的.reg注册表文件即可