System-defined Variables
[Previous] [Main] [Next]

 
The htmlCgi (htmlServer) class offers access to several server-specific pieces of information as member variables. The following member variables, unless noted otherwise, are all String objects. They are commonly defined by most web servers as CGI environment variables, though your particular server may or may not include all of them. html++ applications can use the information contained in these variables to customize behavior or to implement advanced features, such as tailoring document contents based upon the client IP address.  
 
 
Server_Software  
The name and version number of the server software (e.g., Stronghold/2.0b3).  
 
Server_Name  
The host being addressed in this request, which may be the main host or a virtual host, either as a fully-qualified domain name or an IP address.  
 
Gateway_Interface  
The name and version number of the CGI gateway (e.g., CGI/1.1).  
 
Server_Protocol  
The protocol and version number used to send the request, which the server may also use in its response in order to ensure compatibility with the client (e.g., protocol/version).  
 
Server_Port  
The port number to which the request was sent.  
 
Request_Method  
The method used in the request, such as GET or POST.  
 
Http_Accept  
One or more MIME types that the client can accept (e.g., MIME-type[, MIME-type, MIME-type . . .]).  
 
Path_Info  
Extra path information submitted in the request URL and used as input to a CGI program.  
 
Path_Translated  
The absolute path of the requested file, if the value of Path_Info can be translated to a file.  
 
Script_Name  
The URI of the requested script.  
 
Query_String  
The query-string for this transaction, embedded in the requested URL.  
 
Remote_Host  
The hostname or IP number of the client host or proxy server that originated the request.  
 
Remote_Addr  
The IP number of the client host.  
 
Auth_Type  
The authentication method used in this request, if any.  
 
Remote_User  
The remote username, if the script is subject to basic authentication.  
 
Remote_Ident  
The remote username, if available.  
 
Content_Type  
The MIME type of any data attached to the request header.  
 
Content_Length  
The size, in bytes as an integer, of any data attached to the request header.  
 
Content  
Data attached to the request header.  
 


©1998 DC Micro Development. All rights reserved.
No portion of this document may be c opied or reproduced without expressed written consent.
html++ is a trademark of DC Micro Development.