Class ServerVariables
- Namespace
- PolarStudio
- Assembly
- PolarStudio.dll
This class provided a similar interface to the server variables as was available in classic ASP applications. Not all variables are implemented.
public class ServerVariables
- Inheritance
-
ServerVariables
- Inherited Members
- Extension Methods
Properties
this[string]
This default method is used to get a specific variable.
public string this[string pVariableName] { get; }
Parameters
pVariableName
stringThe name of the variable to get. Use one of: 'ALL_RAW', 'REQUEST_METHOD', 'URL', 'LOCAL_ADDR', 'REMOTE_ADDR', 'SERVER_PORT', 'HTTP_USER_AGENT', 'HTTP_ACCEPT_LANGUAGE', 'HTTP_COOKIE', 'CONTENT_LENGTH', 'CONTENT_TYPE', 'QUERY_STRING', 'HTTP_REFERER', 'HTTPS', 'INSTANCE_ID'. Also, a name can be used with 'HTTP_'-prefix, to get a header straight from the http-headers. Other server variables will be tried to get using the underlying GetServerVariable method. If not found, '--- Not implemented ---' is returned.