The mgiRequest Tag

Tag Behavior

Use the mgiRequest tag to display HTTP header information in the location of the tag.


Tag Syntax

The mgiRequest tag has one required parameter and no optional parameters. The tag form is:

<mgiRequest data="Type">

Required Parameters:

  • data - The data is the type of HTTP header information to display. Valid data types are:
    • Username - The username if authentication was required.
    • Password - The password if authentication was required.
    • ClientAddress - The domain name of the client (or the client's IP address if DNS look-ups are disabled).
    • ServerAddress - The domain name of the server (or the server's IP address if DNS look-ups are disabled).
    • ServerPort - The TCP/IP port the server is listening on.
    • ScriptName - The file portion of the URL.
    • ContentType - The MIME type of post arguments, if present.
    • Referrer - The URL of the page visited prior to accessing the page which contains mgiRequest.
    • UserAgent - The browser software name and version.
    • Method - The HTTP method being requested (such as GET, GET_CONDITIONAL, POST, etc.).
    • ClientIP - The IP address of the client.
    • VirtualHost - The name of the web site that is being accessed.
    • PageID - The number of the page served since the last server restart for each region.
    • QueryString - The string of path arguments in the URL.

Optional Parameters:

  • None.


Example Usage and Output

Welcome Back <mgiRequest data="username">!

In this example, the mgiRequest tag is used to display the username entered by a visitor into an authentication dialogue box. If the username was Pete, then the following would be displayed:

Welcome Back Pete!


Suggested Usage

  • User Authentication


[Understanding MGI Menu] [Using MGI Menu] [Referencing MGI Menu]


[MGI Guides Main Menu] [User Guide Main Menu]