test-cgi.html

See Apache's about [cgi.html].
First, some addresses
ok: [/~lloyd/public_html/] note the leading '/',
bad:[~lloyd/public_html/].
(BTW public_html just points to [/~lloyd/].)

echoback (cgi-bin/echoback, METHOD="POST" needed)
the_string:

relative cgi-bin/echoback == /~lloyd/cgi-bin/echoback

echoback_GET (cgi-bin/echoback_GET,  note default="GET", not "POST")
the_string:


The old pre-2016 www.csse....tildeBIB/ form was:
(FORM action="/cgi-bin/glookbib_search")
Search String:
(INPUT name="search_string" style="width:80%")
(INPUT TYPE=hidden name="index_file"
    value="~lloyd/public_html/INDEX")
(INPUT TYPE=submit value="Search")
(INPUT TYPE=reset value="Clear text")
(/FORM)
and a resulting URL was
.../glookbib_search?search_string=blah&index_file=...%2FINDEX
(but glookbib_search was at webmaster's /cgi-bin/glookbib_search)
search (cgi-bin/glookbib_search):
search_string:



Old pre-2016 'www.csse...' form was:
(FORM ACTION="/cgi-bin/cgiwrap/lloyd/prologtoy" METHOD="POST")
...
...
(INPUT TYPE="submit" VALUE="Run")
(INPUT TYPE="reset" VALUE="Reset")

Prolog.toy
(FORM ACTION="cgi-bin/prologtoy" METHOD="POST") etc.


(See [examples].)


From Apache's [cgi] docs (22/2/2017) ...
"... When a program runs through the web server as a CGI program, it may not have the same PATH. Any programs that you invoke in your CGI program ... will need to be specified by a full path, so that the shell can find them when it attempts to execute your CGI program. ..."
cgi-bin/testUserMonash   (not POST, so GET):
search_string:
(Check out "QUERY_STRING --> ...")
[link] & [2] call .../testUserMonash

Lloyd Allison, 22/2/2017