7 个解决方案
#1
如果你在移动或联通公司 申报WAP服务的话。。
他们可以在网关开放信息给你,
你的WAP站点可以获得USERAGENT信息:
包括手机号,手机型号,浏览器版本号等等,并且能使用FREEWAP所不能用的COOKIE
我们的WAP网目前可获取的:
(1) 如何获取登录用户的相关信息?
答:所谓用户的相关信息包括手机号码、手机IMEI、手机型号等,这些信息对于本网站实现收费功能有着重要作用。
目前,通过以下语句:
Enumeration e = request.getHeaderNames();
while(e.hasMoreElements()) {
String name = (String) e.nextElement();
String value = request.getHeader(name);
out.println(name + "=" + value + "<br/>");
}
可以在WinWAP for Windows 4.0中获取的消息头有:
user-agent=WinWAP/3.2 (3.2.1.25; Win32)accept=application/vnd.wap.wmlc, text/vnd.wap.wml, image/vnd.wap.wbmp, image/gif, image/jpeg, application/vnd.wap.wmlscriptc, text/vnd.wap.wmlscript
host=wap.kuuxin.com
content-length=0
但是在Nokia 5200及Sony Ericsson下只能得到如下消息头:
Connection = keep-Alive
Host = wap.kuuxin.com
Accept = application/vnd.wap.wmlscriptc,
text/vnd.wap.wml,
application/vnd.wap.xhtml + xml,
application/xhtml + xml,
text/html,
multipart/mixed, */*
Accept-Charset = ISO-8859-, US-ASCII, UTF-8;
Q = 0.8, ISO-10646-UCS-2;
Q = 0.6
Accept-Language = zh-CN, en
Cookie = jid = JESSION…
Via = HTTP/1.1 GDSZ-PS-WAP 11-GW012 (infox-WISG, HuaWei Technologies)
DRM-Version = 2.0
Cookie2 == “1”
Content-length = 0
无法获取User-Agent及IMEI等重要信息。
他们可以在网关开放信息给你,
你的WAP站点可以获得USERAGENT信息:
包括手机号,手机型号,浏览器版本号等等,并且能使用FREEWAP所不能用的COOKIE
我们的WAP网目前可获取的:
(1) 如何获取登录用户的相关信息?
答:所谓用户的相关信息包括手机号码、手机IMEI、手机型号等,这些信息对于本网站实现收费功能有着重要作用。
目前,通过以下语句:
Enumeration e = request.getHeaderNames();
while(e.hasMoreElements()) {
String name = (String) e.nextElement();
String value = request.getHeader(name);
out.println(name + "=" + value + "<br/>");
}
可以在WinWAP for Windows 4.0中获取的消息头有:
user-agent=WinWAP/3.2 (3.2.1.25; Win32)accept=application/vnd.wap.wmlc, text/vnd.wap.wml, image/vnd.wap.wbmp, image/gif, image/jpeg, application/vnd.wap.wmlscriptc, text/vnd.wap.wmlscript
host=wap.kuuxin.com
content-length=0
但是在Nokia 5200及Sony Ericsson下只能得到如下消息头:
Connection = keep-Alive
Host = wap.kuuxin.com
Accept = application/vnd.wap.wmlscriptc,
text/vnd.wap.wml,
application/vnd.wap.xhtml + xml,
application/xhtml + xml,
text/html,
multipart/mixed, */*
Accept-Charset = ISO-8859-, US-ASCII, UTF-8;
Q = 0.8, ISO-10646-UCS-2;
Q = 0.6
Accept-Language = zh-CN, en
Cookie = jid = JESSION…
Via = HTTP/1.1 GDSZ-PS-WAP 11-GW012 (infox-WISG, HuaWei Technologies)
DRM-Version = 2.0
Cookie2 == “1”
Content-length = 0
无法获取User-Agent及IMEI等重要信息。
#2
<%
Dim Ip,number,mobiletype,loca,uri
Dim Conn,Sql,Rs
Ip=Request.ServerVariables("REMOTE_ADDR")
uri=Request.ServerVariables("PATH_INFO")
number1=Request.ServerVariables ( "HTTP_x-up-calling-line-id" )
mobile1=Request.ServerVariables ( "HTTP_User-Agent" )
number = Right(number1,Len(number1)-2)
mobile2 = Split(mobile1,"/")
mobiletype=mobile2(0)
loca=Request.Cookies( "CUI" )
Sql="Select * From Visitor Order By Id DESC"
Rs.Open Sql,Conn,1,3
Rs.Addnew
Rs("SDate")=date
Rs("STime")=time
Rs("IP")=Ip
Rs("UserNo")=number
Rs("MobileType")=mobiletype
Rs("CUI")=loca
Rs("URI")=uri
Rs.Update
Rs.Close
Conn.Close
Set Rs=Nothing
Set Conn=Nothing
%>
Dim Ip,number,mobiletype,loca,uri
Dim Conn,Sql,Rs
Ip=Request.ServerVariables("REMOTE_ADDR")
uri=Request.ServerVariables("PATH_INFO")
number1=Request.ServerVariables ( "HTTP_x-up-calling-line-id" )
mobile1=Request.ServerVariables ( "HTTP_User-Agent" )
number = Right(number1,Len(number1)-2)
mobile2 = Split(mobile1,"/")
mobiletype=mobile2(0)
loca=Request.Cookies( "CUI" )
Sql="Select * From Visitor Order By Id DESC"
Rs.Open Sql,Conn,1,3
Rs.Addnew
Rs("SDate")=date
Rs("STime")=time
Rs("IP")=Ip
Rs("UserNo")=number
Rs("MobileType")=mobiletype
Rs("CUI")=loca
Rs("URI")=uri
Rs.Update
Rs.Close
Conn.Close
Set Rs=Nothing
Set Conn=Nothing
%>
#3
没用过,关注学习。
#4
关注,帮顶
#5
关注
#6
顶,不会
#7
学习
#1
如果你在移动或联通公司 申报WAP服务的话。。
他们可以在网关开放信息给你,
你的WAP站点可以获得USERAGENT信息:
包括手机号,手机型号,浏览器版本号等等,并且能使用FREEWAP所不能用的COOKIE
我们的WAP网目前可获取的:
(1) 如何获取登录用户的相关信息?
答:所谓用户的相关信息包括手机号码、手机IMEI、手机型号等,这些信息对于本网站实现收费功能有着重要作用。
目前,通过以下语句:
Enumeration e = request.getHeaderNames();
while(e.hasMoreElements()) {
String name = (String) e.nextElement();
String value = request.getHeader(name);
out.println(name + "=" + value + "<br/>");
}
可以在WinWAP for Windows 4.0中获取的消息头有:
user-agent=WinWAP/3.2 (3.2.1.25; Win32)accept=application/vnd.wap.wmlc, text/vnd.wap.wml, image/vnd.wap.wbmp, image/gif, image/jpeg, application/vnd.wap.wmlscriptc, text/vnd.wap.wmlscript
host=wap.kuuxin.com
content-length=0
但是在Nokia 5200及Sony Ericsson下只能得到如下消息头:
Connection = keep-Alive
Host = wap.kuuxin.com
Accept = application/vnd.wap.wmlscriptc,
text/vnd.wap.wml,
application/vnd.wap.xhtml + xml,
application/xhtml + xml,
text/html,
multipart/mixed, */*
Accept-Charset = ISO-8859-, US-ASCII, UTF-8;
Q = 0.8, ISO-10646-UCS-2;
Q = 0.6
Accept-Language = zh-CN, en
Cookie = jid = JESSION…
Via = HTTP/1.1 GDSZ-PS-WAP 11-GW012 (infox-WISG, HuaWei Technologies)
DRM-Version = 2.0
Cookie2 == “1”
Content-length = 0
无法获取User-Agent及IMEI等重要信息。
他们可以在网关开放信息给你,
你的WAP站点可以获得USERAGENT信息:
包括手机号,手机型号,浏览器版本号等等,并且能使用FREEWAP所不能用的COOKIE
我们的WAP网目前可获取的:
(1) 如何获取登录用户的相关信息?
答:所谓用户的相关信息包括手机号码、手机IMEI、手机型号等,这些信息对于本网站实现收费功能有着重要作用。
目前,通过以下语句:
Enumeration e = request.getHeaderNames();
while(e.hasMoreElements()) {
String name = (String) e.nextElement();
String value = request.getHeader(name);
out.println(name + "=" + value + "<br/>");
}
可以在WinWAP for Windows 4.0中获取的消息头有:
user-agent=WinWAP/3.2 (3.2.1.25; Win32)accept=application/vnd.wap.wmlc, text/vnd.wap.wml, image/vnd.wap.wbmp, image/gif, image/jpeg, application/vnd.wap.wmlscriptc, text/vnd.wap.wmlscript
host=wap.kuuxin.com
content-length=0
但是在Nokia 5200及Sony Ericsson下只能得到如下消息头:
Connection = keep-Alive
Host = wap.kuuxin.com
Accept = application/vnd.wap.wmlscriptc,
text/vnd.wap.wml,
application/vnd.wap.xhtml + xml,
application/xhtml + xml,
text/html,
multipart/mixed, */*
Accept-Charset = ISO-8859-, US-ASCII, UTF-8;
Q = 0.8, ISO-10646-UCS-2;
Q = 0.6
Accept-Language = zh-CN, en
Cookie = jid = JESSION…
Via = HTTP/1.1 GDSZ-PS-WAP 11-GW012 (infox-WISG, HuaWei Technologies)
DRM-Version = 2.0
Cookie2 == “1”
Content-length = 0
无法获取User-Agent及IMEI等重要信息。
#2
<%
Dim Ip,number,mobiletype,loca,uri
Dim Conn,Sql,Rs
Ip=Request.ServerVariables("REMOTE_ADDR")
uri=Request.ServerVariables("PATH_INFO")
number1=Request.ServerVariables ( "HTTP_x-up-calling-line-id" )
mobile1=Request.ServerVariables ( "HTTP_User-Agent" )
number = Right(number1,Len(number1)-2)
mobile2 = Split(mobile1,"/")
mobiletype=mobile2(0)
loca=Request.Cookies( "CUI" )
Sql="Select * From Visitor Order By Id DESC"
Rs.Open Sql,Conn,1,3
Rs.Addnew
Rs("SDate")=date
Rs("STime")=time
Rs("IP")=Ip
Rs("UserNo")=number
Rs("MobileType")=mobiletype
Rs("CUI")=loca
Rs("URI")=uri
Rs.Update
Rs.Close
Conn.Close
Set Rs=Nothing
Set Conn=Nothing
%>
Dim Ip,number,mobiletype,loca,uri
Dim Conn,Sql,Rs
Ip=Request.ServerVariables("REMOTE_ADDR")
uri=Request.ServerVariables("PATH_INFO")
number1=Request.ServerVariables ( "HTTP_x-up-calling-line-id" )
mobile1=Request.ServerVariables ( "HTTP_User-Agent" )
number = Right(number1,Len(number1)-2)
mobile2 = Split(mobile1,"/")
mobiletype=mobile2(0)
loca=Request.Cookies( "CUI" )
Sql="Select * From Visitor Order By Id DESC"
Rs.Open Sql,Conn,1,3
Rs.Addnew
Rs("SDate")=date
Rs("STime")=time
Rs("IP")=Ip
Rs("UserNo")=number
Rs("MobileType")=mobiletype
Rs("CUI")=loca
Rs("URI")=uri
Rs.Update
Rs.Close
Conn.Close
Set Rs=Nothing
Set Conn=Nothing
%>
#3
没用过,关注学习。
#4
关注,帮顶
#5
关注
#6
顶,不会
#7
学习