
ASP里面什么变量可以和PHP的$_SERVER['REQUEST_URI']一样效果?!
2个回答
展开全部
Request.ServerVariables
以下为参数,=号前都是
输出方法: response.write Request.ServerVariables("PATH_INFO")
输出域名后面的所有地址
all_http=http_accept:image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* http_accept_language:zh-cn http_connection:keep-alive http_host:localhost:88 http_user_agent:mozilla/4.0 (compatible; msie 6.0; windows nt 5.1; sv1; .net clr 1.1.4322) http_cookie:aspsessionidsqbtbads=hddlkakaajdkphhbnbbaaclh http_accept_encoding:gzip, deflate
all_raw=accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* accept-language: zh-cn connection: keep-alive host: localhost:88 user-agent: mozilla/4.0 (compatible; msie 6.0; windows nt 5.1; sv1; .net clr 1.1.4322) cookie: aspsessionidsqbtbads=hddlkakaajdkphhbnbbaaclh accept-encoding: gzip, deflate
appl_md_path=/lm/w3svc/1/root/xml
appl_physical_path=c:\documents and settings\khaspc\桌面\olcr_1\1\
auth_password=
auth_type=
auth_user=
cert_cookie=
cert_flags=
cert_issuer=
cert_keysize=
cert_secretkeysize=
cert_serialnumber=
cert_server_issuer=
cert_server_subject=
cert_subject=
content_length=0
content_type=
gateway_interface=cgi/1.1
https=off
https_keysize=
https_secretkeysize=
https_server_issuer=
https_server_subject=
instance_id=1
instance_meta_path=/lm/w3svc/1
local_addr=127.0.0.1
logon_user=
path_info=/xml/request.s.asp
path_translated=c:\documents and settings\khaspc\桌面\olcr_1\1\request.s.asp
query_string=
remote_addr=127.0.0.1
remote_host=127.0.0.1
remote_user=
request_method=get
script_name=/xml/request.s.asp
server_name=localhost
server_port=88
server_port_secure=0
server_protocol=http/1.1
server_software=microsoft-iis/5.1
url=/xml/request.s.asp
http_accept=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
http_accept_language=zh-cn
http_connection=keep-alive
http_host=localhost:88
http_user_agent=mozilla/4.0 (compatible; msie 6.0; windows nt 5.1; sv1; .net clr 1.1.4322)
http_cookie=aspsessionidsqbtbads=hddlkakaajdkphhbnbbaaclh
http_accept_encoding=gzip, deflate
以下为参数,=号前都是
输出方法: response.write Request.ServerVariables("PATH_INFO")
输出域名后面的所有地址
all_http=http_accept:image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* http_accept_language:zh-cn http_connection:keep-alive http_host:localhost:88 http_user_agent:mozilla/4.0 (compatible; msie 6.0; windows nt 5.1; sv1; .net clr 1.1.4322) http_cookie:aspsessionidsqbtbads=hddlkakaajdkphhbnbbaaclh http_accept_encoding:gzip, deflate
all_raw=accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* accept-language: zh-cn connection: keep-alive host: localhost:88 user-agent: mozilla/4.0 (compatible; msie 6.0; windows nt 5.1; sv1; .net clr 1.1.4322) cookie: aspsessionidsqbtbads=hddlkakaajdkphhbnbbaaclh accept-encoding: gzip, deflate
appl_md_path=/lm/w3svc/1/root/xml
appl_physical_path=c:\documents and settings\khaspc\桌面\olcr_1\1\
auth_password=
auth_type=
auth_user=
cert_cookie=
cert_flags=
cert_issuer=
cert_keysize=
cert_secretkeysize=
cert_serialnumber=
cert_server_issuer=
cert_server_subject=
cert_subject=
content_length=0
content_type=
gateway_interface=cgi/1.1
https=off
https_keysize=
https_secretkeysize=
https_server_issuer=
https_server_subject=
instance_id=1
instance_meta_path=/lm/w3svc/1
local_addr=127.0.0.1
logon_user=
path_info=/xml/request.s.asp
path_translated=c:\documents and settings\khaspc\桌面\olcr_1\1\request.s.asp
query_string=
remote_addr=127.0.0.1
remote_host=127.0.0.1
remote_user=
request_method=get
script_name=/xml/request.s.asp
server_name=localhost
server_port=88
server_port_secure=0
server_protocol=http/1.1
server_software=microsoft-iis/5.1
url=/xml/request.s.asp
http_accept=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
http_accept_language=zh-cn
http_connection=keep-alive
http_host=localhost:88
http_user_agent=mozilla/4.0 (compatible; msie 6.0; windows nt 5.1; sv1; .net clr 1.1.4322)
http_cookie=aspsessionidsqbtbads=hddlkakaajdkphhbnbbaaclh
http_accept_encoding=gzip, deflate
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询