Assignment 5 -- Part B
Using GET and POST
Create a single shell script which responds appropriately to all three methods of submitting data through CGI (construct URL, or form submission through either method GET or method POST) Specifically, it should respond differently to the three data sending techniques, like the script displayed here, but, by not printing irrelevant data for any of the three techniques involved.
For 80%, make a script that behaves like the one used here. (Handles all three methods with two fields.)
For 90%, make a script that behaves like this one. (Handles all three methods: arbitrary number of fields.)
For 95%, separate data from fieldnames and handle "+" characters in the input fields for URL construction.
For 100%, convert escape characters back to their literal values.
Herewith: a hint for the overall structure of the program.