Servertec | ServerVariable( )
M E N U Content Introduction Release Notes Requirements Installation Change Log Future Plans Knowledge Base Referance Manual Conventions Scriptlets Data Types Constants Variables Procedures Operators Statements Objects Array Cookie Date Error File FileDescriptor Hashtable Internet IO JDBC Number Object Properties Random Request Response SqlTypes Stack StreamTokenizer String StringBuffer StringTokenizer System Vector Wrappers Server Side Preprocessor Executable Make Samples Legal Feedback | Returns the value associated with the specified environmental variable. #### Syntax ServerVariables( request, name ) request.ServerVariables( name ) #### Parameters request the request object to use. name the name of the environmental variable. #### Returns string the value associated with the specified environmental variable. null if the specified environmental variable does not exist. #### Notes The following are some of the request object environmental variables:
Environmental Variable | Description
CONTENT_LENGTH | The number of bytes sent by the client.
CONTENT_TYPE | The type of content sent by the client. Normally mime-type application/ x-www-form-urlencoded for forms.
GATEWAY_INTERFACE | The name and revision of the gateway interface being used. Normally CGI/1.1.
HTTP_ACCEPT | A comma delimited list of mime-types which the client accepts.
HTTP_ACCEPT_ENCODING | A comma delimited list of the encoding schemes which the client accepts.
HTTP_ACCEPT_LANGUAGE | A comma delimited list of the languages which the client accepts. Normally en-us for United States English.
HTTP_CONNECTION | Type type of HTTP connection. Normally Keep-Alive for forms.
HTTP_HOST | The host name of the server the request was sent to.
HTTP_REFERER | The URL from which the request was made.
HTTP_USER_AGENT | The client making the request.
HTTPS | Whether the request is secure. on if the request is secure. off if the request is not secure.
LOCAL_ADDR | The IP address of the server the request was sent to.
PATH_INFO | Additional path information sent by the client.
PATH_TRANSLATED | Physical path translation of PATH_INFO.
QUERY_STRING | Any information sent after the ? in the HTTP request made by the client.
REMOTE_ADDR | The IP address of the client making the request.
REMOTE_HOST | The host name of the client making the request.
REQUEST_METHOD | The form request method being made. Normally [ get | post ].
SCRIPT_NAME | The virtual path of the script being executed.
SERVER_NAME | The host name of the server the request was sent to.
SERVER_PORT | The port number the request waas sent to. Normally port 80.
SERVER_PORT_SECURE | Whether the request is secure. 1 if the request is secure. 0 if the request is not secure.
SERVER_PROTOCOL | The name and revision of the request protocol being used. Normally HTTP/1.1.
SERVER_SOFTWARE | The name and revision of the server being used.
#### Notes This method is only accessible by ss. #### Example l = Request( ).ServerVariables( "CONTENT_LENGTH" ) if isNull( l ) then l = -1 end
top of page
| Copyright © 1997-1998 Servertec. All rights reserved. Last Modified: Wed Apr 15 00:16:38 EDT 1998