This subroutine acquires various information about a request.
How to write
CALL "COBW3_GET_REQUEST_INFO" USING COBW3.
Data setting for calling
Specify the type of information to be acquired.
Condition name | Value | Meaning |
---|---|---|
COBW3-URI | LOW-VALUE | Request URI |
COBW3-URL | "1" | Request URL |
COBW3-SERVER-TYPE (COWB3-LISTENERTYPE) | "2" | Server type |
COBW3-VIRTUALPATH | "3" | Virtual directory name of a request |
COBW3-PHYSICALPATH | "4" | Physical path name for the virtual directory of a request |
COBW3-QUERYSTRING | "5" | Web parameter |
COBW3-LANGUAGE | "6" | List of languages that can be received by the WWW Browser |
COBW3-ENCODING | "7" | List of encoding systems that can be received by the WWW Browser |
COBW3-REQMIMETYPE | "8" | MIME type of a request |
COBW3-REQUEST-METHOD | "9" | Request method |
COBW3-PATH-INFO | "A" | Extended path name sent from the WWW Browser |
COBW3-PATH-TRANSLATED | "B" | Physical path name for an extended path |
COBW3-REMOTE-ADDR | "C" | IP address of a client |
COBW3-REMOTE-HOST | "D" | Host name of a client |
COBW3-GATEWAY-INTERFACE | "E" | Revision of the supported CGI |
COBW3-SERVER-NAME | "F" | Host name of a WWW Server |
COBW3-SERVER-PORT | "G" | Connected port number of a WWW Server |
COBW3-SERVER-PROTOCOL | "H" | Protocol used by a WWW Server |
COBW3-SERVER-PORT-SECURE | "I" | "1" is returned if secured communication is conducted. Otherwise, "0" is returned. |
Note
The MIME type of a request cannot be acquired.
Processing result data
The acquired request information is set.
The string length (byte length) of the acquired request information is set.