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

3.8.1 COBW3_RECEIVE_HEADER

This subroutine acquires an HTTP header that corresponds to a request.

Format

CALL "COBW3_RECEIVE_HEADER" USING COBW3.

Data setting at calling

COBW3-HEADER-NAME

Specify a header name that is to be acquired.

COBW3-HEADER-NAME-LENGTH [Optional]

When the header name has a valid blank at the end, specify the byte length of the blank-containing header name (character string).

Value

Explanation

0

Retrieves a header name up to the last character other than the blank.

1 to 64

Retrieves a header name of the specified character string length.

Usually header names do not have a blank at the end. Therefore, specify "0."

Processing result data

COBW3-HEADER-VALUE

The header value that corresponds to the requested header name is set.

COBW3-HEADER-VALUE-LENGTH

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

The header names that can be acquired depend on the WWW browser and WWW server being used.