This subroutine acquires various information about a request.
Format
CALL "COBW3_GET_REQUEST_INFO" USING COBW3.
Data setting at calling
Specifies the type of information to be acquired (returned).
Condition name | Value | Explanation |
---|---|---|
COBW3-URI | LOW-VALUE | Returns a request URI. |
COBW3-URL | "1" | Returns a request URL. |
COBW3-SERVER-TYPE (COBW3-LISTENERTYPE) | "2" | Returns a server type. |
COBW3-VIRTUALPATH | "3" | Returns a virtual path name for the request. |
COBW3-PHYSICALPATH | "4" | Returns a physical path name corresponding to the virtual path name for the request. |
COBW3-QUERYSTRING | "5" | Returns Web parameters. |
COBW3-LANGUAGE | "6" | Returns a list of languages that can be received by the WWW browser. |
COBW3-ENCODING | "7" | Returns a list of encoding that can be received by the WWW browser. |
COBW3-REQMIMETYPE | "8" | Returns the MIME type of the request. |
COBW3-REQUEST-METHOD | "9" | Returns a request method. |
COBW3-PATH-INFO | "A" | Returns an extended path name that is sent from the WWW browser. |
COBW3-PATH-TRANSLATED | "B" | Returns a physical path name corresponding to an extended path. |
COBW3-REMOTE-ADDR | "C" | Returns the IP address of the client. |
COBW3-REMOTE-HOST | "D" | Returns the host name of the client. |
COBW3-GATEWAY-INTERFACE | "E" | Returns the revision number of the supported CGI. |
COBW3-SERVER-NAME | "F" | Returns the host name of the server. |
COBW3-SERVER-PORT | "G" | Returns a server-connected port number. |
COBW3-SERVER-PROTOCOL | "H" | Returns a server-used protocol. |
COBW3-SERVER-PORT-SECURE | "I" | Returns 1 (during secure communication) or 0 (in other cases). |
Note
The MIME type of the request cannot be acquired.
As the host name of the client, an IP address may be returned.
Whether the secure communication information can be acquired depends on the WWW server.
Processing result data
The acquired request information is set.
The byte length of the acquired request information (character string) is set.