中国移动cmwap上网会拦截手机User-Agent

昨天做了个WAP页面,在电脑上用Opera访问是正常的,手机上用联通卡访问也是正常的,唯独使用移动卡访问出错(用cmwap接入),页面显示:

引用内容 引用内容
Your request for a service could not be fulfilled.Please try again or contact your operator if the problem persists.

在IIS日志中看到返回状态为500,但是同一张移动卡访问同一站点其他WAP页面又是正常的。于是将出错WAP页面代码全部删除,再一一添加并测试来排除,最终发现在获取手机User-Agent时出错,获取到的手机User-Agent值为空!

下边是用移动卡和联通卡访问页面Headers信息:

中国移动:
引用内容 引用内容
Connection=close
Via=WTP/1.1 FJFZ-PS-WAP3-GW11 (Nokia WAP Gateway 4.1 CD1/ECD13_D/4.1.04)
Content-Length=0
Accept=text/javascript, text/ecmascript, application/x-javascript, text/html, application/vnd.wap.xhtml+xml, application/xhtml+xml, text/css, multipart/mixed, text/vnd.wap.wml, application/vnd.wap.wmlc, application/vnd.wap.wmlscriptc, application/java-archive, application/java, application/x-java-archive, text/vnd.sun.j2me.app-descriptor, application/vnd.oma.drm.message, application/vnd.oma.drm.content, application/vnd.wap.mms-message, application/vnd.wap.sic, text/x-co-desc, application/vnd.oma.dd+xml, */*, text/x-vcard, text/x-vcalendar, image/gif, image/vnd.wap.wbmp
Accept-Charset=iso-8859-1, utf-8, iso-10646-ucs-2; q=0.6
Accept-Encoding=gzip, deflate, x-gzip, identity; q=0.9
Accept-Language=zh-cn, zh;q=1.0, en;q=0.5
Cookie=jid=Nb42mFRT4p!-592106187
Host=code.5k3g.com
Cookie2=$Version=1
X-Network-info=CSD,8613481510533,10.216.180.224,10.214.0.2,unsecured
X-Forwarded-For=10.216.180.224
X-Source-ID=10.214.0.2
X-Nokia-CONNECTION_MODE=TCP
X-Up-Bearer-Type=CSD
X-Nokia-gateway-id=NWG/4.1/Build4.1.04

中国联通:
引用内容 引用内容
Connection=close
Via=ZXWAP GateWay,ZTE Technologies
Accept=text/javascript, text/ecmascript, application/x-javascript, text/html, application/vnd.wap.xhtml+xml, application/xhtml+xml, text/css, multipart/mixed, text/vnd.wap.wml, application/vnd.wap.wmlc, application/vnd.wap.wmlscriptc, application/java-archive, application/java, application/x-java-archive, text/vnd.sun.j2me.app-descriptor, application/vnd.oma.drm.message, application/vnd.oma.drm.content, application/vnd.wap.mms-message, application/vnd.wap.sic, text/x-co-desc, application/vnd.oma.dd+xml, */*
Accept-Charset=iso-8859-1, utf-8, iso-10646-ucs-2; q=0.6
Accept-Encoding=gzip, deflate, x-gzip, identity; q=0.9
Accept-Language=zh-cn, zh;q=1.0, en;q=0.5
Host=code.5k3g.com
User-Agent=NokiaN73-1/4.0747.31.1.1 Series60/3.0 Profile/MIDP-2.0 Configuration/CLDC-1.1
x-up-bear-type=GPRS
x-source-id=10.115.255.254
x-forwarded-for=172.26.75.168
x-up-calling-line-id=8613255044704

后来又发现,移动卡若改用cmnet接入代码就能正常获取User-Agent,所以,中国移动cmwap上网拦截了手机User-Agent!

评论: 0 | 引用: 0 | 查看次数: 8329
发表评论
登录后再发表评论!