The Application (gb.web) class provides information about a CGI application.
The Application class has six properties:
Property | Data type | Description |
---|---|---|
Root | String | Get the (root) path of the CGI application. |
Host | String | Determines the current host. |
Port | String | Get the port specified in the URL request. |
LogFile | String | Get the path or set the path to the file to which the standard error output is redirected. |
Protocol | String | Get the protocol or set the protocol used by the HTTP request. |
Request | String | Returns the request submitted to the CGI application. |
Table 24.6.3.1.1 : Properties of the Application class.
Notes:
You can also determine the value of the Application.Request property using CGI environment variables like this:
"http://" & CGI["HTTP_HOST"] &/ CGI["PATH_INFO"] &/ CGI["SCRIPT_NAME"] & "?" & CGI["QUERY_STRING"]