下面是測試代碼,保存為test.ASP
實際中,我們的請求一般僅針對表單的post請求與地址欄的get方法請求(Requestw函數).
<%
function Requestw(str)
Dim tmp
tmp = Request.QueryString(str)
If tmp = "" Then tmp = Request.Form(str)
Requestw = tmp
end Function
dim DEF_PageExeTime1
DEF_PageExeTime1=Timer * 1000
Dim n,happy
for n = 0 to 50000
happy = Requestw("name")
Next
Response.Write abs(CDBL(Timer)*1000 - DEF_PageExeTime1)
%>