Servertec | ServerVariable( )

Content Introduction Release Notes Features FAQs Requirements Installation Change Log Future Plans Knowledge Base Reference Manual Conventions Scriptlets Data Types Constants Variables Procedures Operators Statements Objects Array Cookie Date Enumeration File FileDescriptor Hashtable Internet IO JDBC Number Object Properties Random Request Response SqlTypes Stack StreamTokenizer String StringBuffer StringTokenizer System Vector Wrappers Servlet Server Side Preprocessor Executable Samples Sales Legal Feedback |
Returns the server variables or the value associated with the specified server variable. #### Syntax ServerVariables( request ) request.ServerVariables( ) #### Parameters
request | the request object to use.
#### Returns
string | the server variables.
#### 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 | The type of HTTP connection. Normally Keep-Alive for forms.
HTTP_HOST | The host name of the server the request was sent to.
HTTP_REFERRER | 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 was 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.
This method is only accessible by ss and by iScript Servlet. #### Example
    vars = Request( ).ServerVariable( )
#### Syntax ServerVariables( request , name ) request.ServerVariables( name ) #### Parameters
request | the request object to use.
name | the name of the server variable.
#### Returns
string | the value associated with the specified server variable. null if the specified server variable does not exist.
This method is only accessible by ss and by iScript Servlet. #### Example
    l = Request( ).ServerVariable( "CONTENT_LENGTH" )

    if isNull( l ) then
        l = -1
    end
top of page
| Copyright © 1997-1999 Servertec. All rights reserved. Last Modified: Tue Jan 26 22:19:03 EST 1999