iClarify the »arguments« argument to [d]cgi scripts. - geomyidae - A small C-based gopherd. Err bitreich.org 70 hgit clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ URL:git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ bitreich.org 70 1Log /scm/geomyidae/log.gph bitreich.org 70 1Files /scm/geomyidae/files.gph bitreich.org 70 1Refs /scm/geomyidae/refs.gph bitreich.org 70 1Tags /scm/geomyidae/tag bitreich.org 70 1README /scm/geomyidae/file/README.gph bitreich.org 70 1LICENSE /scm/geomyidae/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit 59985412850ecb1837a7518b7de08ed790c06e03 /scm/geomyidae/commit/59985412850ecb1837a7518b7de08ed790c06e03.gph bitreich.org 70 1parent 621a10e4ba30b33ef351d52ac5ff37b55458d96b /scm/geomyidae/commit/621a10e4ba30b33ef351d52ac5ff37b55458d96b.gph bitreich.org 70 hAuthor: Christoph Lohmann <20h@r-36.net> URL:mailto:20h@r-36.net bitreich.org 70 iDate: Thu, 24 Nov 2016 22:27:42 +0100 Err bitreich.org 70 i Err bitreich.org 70 iClarify the »arguments« argument to [d]cgi scripts. Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M geomyidae.8 | 11 ++++++----- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 6 insertions(+), 5 deletions(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/geomyidae.8 b/geomyidae.8 /scm/geomyidae/file/geomyidae.8.gph bitreich.org 70 i@@ -297,7 +297,7 @@ Both .cgi and .dcgi scripts have the same argument call structure (as seen by ge Err bitreich.org 70 i where Err bitreich.org 70 i .Pp Err bitreich.org 70 i .D1 search = query string (type 7) or Qo Qc (type 0) Err bitreich.org 70 i-.D1 arguments = Qo Qc Err bitreich.org 70 i+.D1 arguments = string after Qo ? Qc in the path or Qo Qc Err bitreich.org 70 i .D1 host = server's hostname ("localhost" by default) Err bitreich.org 70 i .D1 port = server's port ("70" by default) Err bitreich.org 70 i .Pp Err bitreich.org 70 i@@ -333,23 +333,24 @@ ex. hello.cgi - standard CGI with query Err bitreich.org 70 i #!/bin/sh Err bitreich.org 70 i # hello.cgi - welcome user Err bitreich.org 70 i NAME=$1 Err bitreich.org 70 i+HOSTNAME=$2 Err bitreich.org 70 i echo "" Err bitreich.org 70 i-echo Hello $NAME - welcome to Frog.bog Err bitreich.org 70 i+echo Hello $NAME - welcome to $HOSTNAME Err bitreich.org 70 i exit 0 Err bitreich.org 70 i .Ed Err bitreich.org 70 i . Err bitreich.org 70 i .Pp Err bitreich.org 70 i Call the above with the following index.gph entry: Err bitreich.org 70 i .Pp Err bitreich.org 70 i-.D1 [7|Hello You - Please enter your name|/hello.cgi?|frog.bog|70] Err bitreich.org 70 i+.D1 [7|Hello You - Please enter your name|/hello.cgi?FROG.bog|frog.bog|70] Err bitreich.org 70 i . Err bitreich.org 70 i .Pp Err bitreich.org 70 i And do a simple Err bitreich.org 70 i .Xr snarf 1 Err bitreich.org 70 i query (note the inserted TAB): Err bitreich.org 70 i .Pp Err bitreich.org 70 i-.D1 % snarf Qo gopher://frog.bog/7/hello.cgi?[TAB]Christoph Qc - Err bitreich.org 70 i-.D1 Hello Christoph - welcome to Frog.bog Err bitreich.org 70 i+.D1 % snarf Qo gopher://frog.bog/7/hello.cgi?FROG.bog[TAB]Christoph Qc - Err bitreich.org 70 i+.D1 Hello Christoph - welcome to FROG.bog Err bitreich.org 70 i . Err bitreich.org 70 i .Pp Err bitreich.org 70 i Dynamic CGI entries are similar to above except that the script Err bitreich.org 70 .