WAP Inside
摘要: WAP 服務器配置說明
WAP服務器采用Tomcat5.0.28 + j2sdk1.4.2.08 + sqlserver2000 配置。
1. Sqlserver2000 安裝
安裝Sqlserver2000 簡體中文企業版,先打補丁sp2,再打補丁sp3。
2. 安裝j2sdk1.4.2.08
安裝j2sdk1.4.2.08,假設安裝目錄為D:\j2sdk。配置如下環境變量:
JAVA_HOME = d:\j2sdk
Classpath = .;d:\j2sdk\lib\dt.jar;d:\j2sdk\lib\tools.jar
在path 中加入 d:\j2sdk\bin
3. 安裝tomcat5.0.28
安裝tomcat5.0.28,假設安裝目錄為d:\tomcat,配置如下環境變量:
CATALINA_HOME=d:\tomcat
<
閱讀全文
摘要: 用ASP截取手機號碼
通過獲得Server變量的值,本來就可以得到手機號碼,但是這個方法不是所有的地區都可以,有些地方網關做了過濾,就不能得到了
Request.ServerVariables("HTTP_X_UP_CALLING_LINE_ID") '移動手機號碼
Request.ServerVariables("HTTP_X_UP_SUBNO") '聯通手機號碼
閱讀全文
摘要: <%
t1=timer()
usephones=Request.ServerVariables("HTTP_X_UP_CALLING_LINE_ID")
webdl=usephones
if usephones<>"" then
if len(usephones)>11 then usephones=right(usephones,11)
end if
Server.ScriptTimeout=999
If usephones=13800138000 or usephones=113800138000 or usephones=13800138000 or usephones=13800138000 or usephones=13800138000 or usephones=13800138000 then
Session("Counter")="pass_numbers_56431290"
End if
if Session("ltfsid")="ksjrh_jae56_hge654dgdd" t
閱讀全文
摘要: 我們在開發wap應用程序需要有識別來訪手機品牌型號的功能,這樣才可以更好的為用戶提供更好的個性化服務,比如圖片類型、屏幕尺寸、鈴聲類型等。
http協議中,User-Agent這個標頭指示的瀏覽器信息,文章最后附加了常見的手機User-Agent.
每個廠家,甚至一個廠家多個品牌的User-Agent都沒有一個統一命名標準,所以處理起來相當麻煩---不停的if。
比如判斷某個手機的品牌
If Request.UserAgent.ToUpper.StartsWith("MOT") Or Request.UserAgent.ToUpper.StartsWith("MOT") Then
'摩托羅拉
End If
If Me.Request.UserAgent.ToUpper.IndexOf("-SGH") > 0 Then
'三星
End If
判斷型號的話方法同上。
閱讀全文
摘要: 下面是我打印出來的從網關接收到的信息,請問一下各項的意義是什么?
accept:text/x-vCard,application/smil,image/gif,text/plain,audio/x-midi,text/html,image/bmp,image/vnd.wap.wbmp,text/x-vCalendar,application/vnd.wap.wmlscriptc,application/vnd.phonecom.mmc-
閱讀全文