|
- Function GetUrl()
- Dim ScriptAddress,Servername,qs
- Dim PROTOCOL
- If (Request.ServerVariables("HTTPS") = "off") Then
- PROTOCOL="http://"
- else
- PROTOCOL="https://"
- end if
- ScriptAddress = CStr(Request.ServerVariables("SCRIPT_NAME"))
- Servername = CStr(Request.ServerVariables("Server_Name"))
- qs=Request.QueryString
- if qs<>"" then
- GetUrl =PROTOCOL& Servername & ScriptAddress &"?"&qs
- else
- GetUrl =PROTOCOL& Servername & ScriptAddress
- end if
- End Function
复制代码 |
|