Asp(vb) Get the computer name:
<%set oWSH = Server.CreateObject("WScript.Network")%>
<%=oWSH.ComputerName%>
Determine whether cookies are available (prohibited)
asp(vb):
<%Set objBC=Server.CreateObject("MSWC.BrowserType")%>
<%= objBC.Cookies%>
You can also write cookies on the previous page to call them on the next page. If the call fails, it means that the cookies are not available.
<%
response.cookies("CookieEnable2y")="yes"
response.cookies("CookieEnable2y").expires=date+30
%>
<%
Set objBC=Server.CreateObject("MSWC.BrowserType")
if request.cookies("CookieEnable2y")<>"yes" or (not objBC.Cookies) then
msg="Error, Cookies are not available, please set the browser correctly!"
a=""
end if
%>
js:
<script language="javascript">
function check(){
if(window.navigator.cookieEnabled)
return true;
else{
alert("Browser configuration is wrong, cookies are not available!");
return false;}
}
</script>
Request.ServerVariables("Url")
Return to the server address
Request.ServerVariables("Path_Info")
Path information provided by the client
Request.ServerVariables("Appl_Physical_Path")
Physical path corresponding to the application metadatabase path
Request.ServerVariables("Path_Translated")
The path obtained by mapping from virtual to physical
Request.ServerVariables("Script_Name")
The name of the execution script
Request.ServerVariables("Query_String")
Query the content of a string
Request.ServerVariables("Http_Referer")
Previous page address
Request.ServerVariables("Server_Port")
The server port number that accepts the request
Request.ServerVariables("Remote_Addr")
IP address of the remote host that issued the request
Request.ServerVariables("Remote_Host")
The name of the remote host that made the request
Request.ServerVariables("Local_Addr")
Returns the server address that accepted the request
Request.ServerVariables("Http_Host")
Return to the server address
Request.ServerVariables("Server_Name")
The server's host name, DNS address, or IP address
Request.ServerVariables("Request_Method")
Methods for making requests such as GET, HEAD, POST, etc.
Request.ServerVariables("Server_Port_Secure")
1 if the server port that accepts the request is a secure port, otherwise 0
Request.ServerVariables("Server_Protocol")
The name and version of the protocol used by the server
Request.ServerVariables("Server_Software")
The name and version of the server software that answers the request and runs the gateway
Request.ServerVariables("All_Http")
All HTTP headers sent by the client, prefixed by HTTP_
Request.ServerVariables("All_Raw")
All HTTP headers sent by the client have the same results as when the client sends, without prefixed HTTP_
Request.ServerVariables("Appl_MD_Path")
Metadatabase path to the application
Request.ServerVariables("Content_Length")
The length of content issued by the client