SERVER_PORT

Retrieves the Web server port number to which the request was sent.

This variable is specific to the current gateway program request.

Type and Usage

Output

Returns the port number as a string.

Example

As information output on a page or to a log:

SERVER_PORT=80

As part of an Idoc Script statement or evaluation:

<$if SERVER_PORT$>
<!--statement-->