sloppycode.net
ASP Reference



Request.ServerVariables([key])

Gives you access to the common environment variables in a way similar to Perl's '$ENV{}'. For example: 'Request.ServerVariables("REMOTE_HOST")' would return the client's IP address.

The following is a shortened list of env. variables available to use:

AUTH_TYPE,
CONTENT_LENGTH,
APPL_PHYSICAL_PATH,
HTTP_ACCEPT,
HTTP_COOKIE,
HTTP_REFERER,
HTTP_USER_AGENT,
QUERY_STRING,
REMOTE_ADDR,
REMOTE_HOST,
REQUEST_METHOD,
SERVER_NAME,
SERVER_PORT,
SERVER_PROTOCOL,
SERVER_SOFWARE.

Most of these are self-explanatory, see http://asp-help.com/getstarted/gs_servervariables.asp for a working version.
› Home
› C#
› Snippets
› Articles
› Tools
› Taglines
› ASP
› Dictionary Object
› FSO
› Unix cheat sheet
› Gaming
› CSS
› Yak
› Umbraco
› About
› Contact
› Privacy
› Projects
› Search
› Sitemap





Buy on Amazon



Buy on Amazon



Buy on Amazon



Buy on Amazon