<%
Dim strUrl
If Request.ServerVariables("HTTPS") = "off" Then strUrl = "http://" Else strUrl = "https://" End If
strUrl = strUrl & Request.ServerVariables("SERVER_NAME")
If Request.ServerVariables("SERVER_PORT") <> 80 Then strUrl = strUrl &":"& Request.ServerVariables("SERVER_PORT") End If
strUrl = strUrl & Request.ServerVariables("URL")
If Request.QueryString <>"" Then strUrl = strUrl & "?" & Request.QueryString End If
Response.Write strUrl
%>