This subroutine acquires an HTTP header that corresponds to a request.
Format
CALL "COBW3_RECEIVE_HEADER" USING COBW3.
Data setting at calling
Specify a header name that is to be acquired.
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
The header value that corresponds to the requested header name is set.
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.