Asp Request.ServerVariables("PATH

mac2026-06-14  16

Asp Request.ServerVariables(“PATH_INFO”)的返回值

比如网址 http://www.zxinai.com/users/diary.asp?action=add,

Request.ServerVariables(“PATH_INFO”)返回 /users/diary.asp 前面一定带斜杆。

Request.ServerVariables(“SERVER_PORT”)返回 80

Request.ServerVariables(“SERVER_NAME”)返回 www.zxinai.com

Request.ServerVariables(“SCRIPT_NAME”)返回 /users/diary.asp

Request.ServerVariables(“HTTP_REFERER”)返回 http://www.zxinai.com/users/diary.asp?action=blog上一来源页面的完整网址

Request.ServerVariables(“QUERY_STRING”)返回 action=add,问号后面参数,不包括问号

Request.ServerVariables(“URL”)返回 /users/diary.asp

最新回复(0)