Introduction
Introduction Statistics Contact Development Disclaimer Help
Clarify the »arguments« argument to [d]cgi scripts. - geomyidae - A small C-b…
git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfri…
Log
Files
Refs
Tags
README
LICENSE
---
commit 59985412850ecb1837a7518b7de08ed790c06e03
parent 621a10e4ba30b33ef351d52ac5ff37b55458d96b
Author: Christoph Lohmann <[email protected]>
Date: Thu, 24 Nov 2016 22:27:42 +0100
Clarify the »arguments« argument to [d]cgi scripts.
Diffstat:
M geomyidae.8 | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/geomyidae.8 b/geomyidae.8
@@ -297,7 +297,7 @@ Both .cgi and .dcgi scripts have the same argument call str…
where
.Pp
.D1 search = query string (type 7) or Qo Qc (type 0)
-.D1 arguments = Qo Qc
+.D1 arguments = string after Qo ? Qc in the path or Qo Qc
.D1 host = server's hostname ("localhost" by default)
.D1 port = server's port ("70" by default)
.Pp
@@ -333,23 +333,24 @@ ex. hello.cgi - standard CGI with query
#!/bin/sh
# hello.cgi - welcome user
NAME=$1
+HOSTNAME=$2
echo ""
-echo Hello $NAME - welcome to Frog.bog
+echo Hello $NAME - welcome to $HOSTNAME
exit 0
.Ed
.
.Pp
Call the above with the following index.gph entry:
.Pp
-.D1 [7|Hello You - Please enter your name|/hello.cgi?|frog.bog|70]
+.D1 [7|Hello You - Please enter your name|/hello.cgi?FROG.bog|frog.bog|70]
.
.Pp
And do a simple
.Xr snarf 1
query (note the inserted TAB):
.Pp
-.D1 % snarf Qo gopher://frog.bog/7/hello.cgi?[TAB]Christoph Qc -
-.D1 Hello Christoph - welcome to Frog.bog
+.D1 % snarf Qo gopher://frog.bog/7/hello.cgi?FROG.bog[TAB]Christoph Qc -
+.D1 Hello Christoph - welcome to FROG.bog
.
.Pp
Dynamic CGI entries are similar to above except that the script
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.