Top
NetCOBOL V11.0 ISAPI Subroutines User's Guide
FUJITSU Software

3.8.1 COBW3_RECEIVE_HEADER

This subroutine acquires the HTTP header from a request.

How to write

CALL "COBW3_RECEIVE_HEADER" USING COBW3.

Data setting for calling

COBW3-HEADER-NAME

Specify the header name to be acquired.

COBW3-HEADER-NAME-LENGTH [optional]

If the header name has a valid blank at the end, set the string length (byte length) of the header name including the blank.

Value

Meaning

0

Searches the header name using the length up to the last character excluding the blank.

1 to 64

Searches the header name using the specified string length.

Since there is normally no header name with a blank at its end, specify 0.

Processing result data

COBW3-HEADER-VALUE

The header value corresponding to the requested header name is set.

COBW3-HEADER-VALUE-LENGTH

The string length (byte length) of the header value corresponding to the requested header name is set.