Problem:
Passing arguments from a URL
Resolution:
INTRODUCTION
==========
The cgiraw demo shows how to read in html form data or url data without having to use external-form data items in the COBOL cgi program. The raw data will be output as html.
SOURCE FILES:
=========
Program Files Description
------------------- -----------------------------------------------------------
cgiraw.cbl COBOL program that reads form data coming from a web server.
Form Files:
------------------- -----------------------------------------------------------
HTMLPage.htm The html page that contains form and url data that can be submitted to the
cgi program.
HTMLPage.mff Form Designer file.
REQUIREMENTS:
==========
If you are not using NetExpress 3.1, you can add cgiraw.cbl and HTMLPage.htm to a newly created project, set the Animate Settings to animate at http://127.0.0.1/cgi-bin/HTMLPage.htm and check the "Wait for animatable attachment" option. Any html page can be used if the html FORM tag's action attribute is updated to refer to "/cgi-bin/cgiraw.exe".
OPERATION:
========
Run the project, type in any data in the input fields and then click the submit button to send the form data to cgiraw. Optionally, you can click the link below the form to pass url data to the web server or enter a url such as http://127.0.0.1/cgi-bin/cgiraw.exe?data=Hello into the address field of the browser. This program will output the raw/undecoded data, the length of the data, and the method used (POST or GET).
==========================================================
Keywords: demonstration, sample, example, demo, web programming, cgiraw.zip
demo.ex
demo.ne
demo.se