Request.ServerVariables补充http_host,URL,Query_String
Posted on 2008-03-10 11:10 ≮海浪轻风≯ 阅读(841) 评论(0) 收藏 举报 Request.ServerVariables("http_host")
Request.ServerVariables("url")
获取相对域名的http地址,参数除外
Request.ServerVariables("QUERY_STRING")
获取 HTTP 请求中问号(?)后的信息,不包括“?”号。
如:
http://expert.csdn.net/Expert/topic/view.asp?id=123456
那么,
Request.ServerVariables("http_host")得到
expert.csdn.net
Request.ServerVariables("url")得到
/Expert/topic/view.asp
Request.ServerVariables("QUERY_STRING")得到
id=123456
浙公网安备 33010602011771号