This subroutine acquires the HTTP header from a request.
How to write
CALL "COBW3_RECEIVE_HEADER" USING COBW3.
Data setting for calling
Specify the header name to be acquired.
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
The header value corresponding to the requested header name is set.
The string length (byte length) of the header value corresponding to the requested header name is set.