Servertec | ServerVariables( )

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 Config Context Cookie Date Enumeration File FileDescriptor Hashtable Internet IO JDBC Number Object Properties Random Request available( ) Content( ) contentData( ) cookieData( ) Cookies( ) decode( ) Form( ) formData( ) getSession( ) isSecure( ) isSessionFromCookie( ) isSessionFromURL( ) isSessionValid( ) length( ) method( ) parseCookies( ) parseRequest( ) path( ) QueryString( ) queryStringData( ) read( ) Request( ) ServerVariables( ) skip( ) RequestDispatcher Response Session SqlTypes Stack StreamTokenizer String StringBuffer StringTokenizer System Vector Wrappers Servlet Server Pages Preprocessor Executable Samples Legal Contact Us |
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 environment variables:
Environment 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 © 1998-2005 Servertec. All rights reserved. Privacy Statement. Last Modified: Sun Sep 04 14:56:08 EDT 2005