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

6.7.4 Retrieving Header Information

Retrieving header information is also simple. Just set the name of an HTTP header that you want to retrieve in COBW3-HEADER-NAME and then invoke COBW3_RECEIVE_HEADER. The HTTP header information, if successfully retrieved, is set in COBW3-HEADER-VALUE.

This sample uses this function to retrieve information in the WWW Browser, which is to be displayed on the screen. The information in the WWW Browser can be retrieved from the "User-Agent" header (Lines 870 through 930).