httprequest代码如下:
Dim fl As String = "e:\web\" & e.path
If filesys.FileExists(fl)
Dim idx As Integer = fl.LastIndexOf(".")
Dim ext As String = fl.SubString(idx)
Select Case ext
Case ".jpg",".gif",".png",".bmp",".wmf",".js",".css" ,".html",".htm",".zip",".rar"
e.WriteFile(fl)
Return '这里必须返回
End Select
End If
'msgbox("0===" & e.Path & ",fl=" & fl)
Dim wb As New weui
If e.Path = "login.htm" Then '以下网页是:需要验证登录的代码
****** '登录验证代码
Select Case e.Path
Case "login.htm"
Functions.Execute("login",e)
End Select
Else '以下网页是:不需要验证登录的代码
Select Case e.Path
Case "index.htm",""
'在电脑上测试,浏览器输入127.0.0.1时,不进入index.htm页面,其他页面进入正常
Functions.Execute("index",e)
End Select
End If
[此贴子已经被作者于2017/6/13 21:11:03编辑过]