HTMLGetPostArgs
Retrieve arguments from the command line.
The WKAPI assumes that any post arguments in standard in are
extracted and put on the command line.
Most commonly used for retrieving
arguments from an HTML form. HTMLCGIParse is called from HTMLGetPostArgs.
HTMLGetPostArgs first looks for input in standard in, where it would
be put by httpd in response to a form submitted with POST method. It
then looks for input on the command line. This feature can be used to
debug routines designed for POST forms without having to run a browser.
Syntax
variable=HTMLGetPostArgs(dummy)
- dummy
- HTMLGetPostArgs needs an argument passed to it but it does not matter what
is contained in that variable
HTMLGetPostArgs looks in the VOC for a record named HTML.TRACE.IP. If the record
exists, and the IP address in that record matches the IP address of the client
invoking this routine, HTMLGetPostArgs saves the current command line in
a VOC entry named HTML.LAST.CMD. This is useful for debugging routines without
having to involve a browser and the httpd. To use RAID to debug the routine,
edit HTML.LAST.CMD and insert -DEBUG as the first parameter, and HTMLGetPostArgs
will enter the debugger just before returning to the calling routine.