2014/11/07
1.取得host,並組成網址
<%
'取得host,並檢查是否是https
if Request.ServerVariables("HTTPS")="on" then
str_url="https://" & Request.ServerVariables("HTTP_HOST")
else 'off
str_url="http://" & Request.ServerVariables("HTTP_HOST")
end if
Response.write(str_url)
'========================
'印出Request.ServerVariables所有資料
'for each x in Request.ServerVariables
' response.write(x & "=" & Request.ServerVariables(x) & "<br>")
'next
%>
沒有留言:
張貼留言