added more info to log of cgi

master
KatolaZ 7 years ago
parent abbd53c57a
commit 48b28c32c3
  1. 2
      gosher
  2. 4
      gosher.8

@ -205,7 +205,7 @@ EOF
serve_cgi(){
script_name=$( echo "$1" | sed -r 's:^/+::')
query_string="$2"
echo "script_name: ${script_name}" >&2
echo "serving script_name: ${script_name} with query_string: ${query_string}" >&2
GATEWAY_INTERFACE="CGI/1.1"
PATH_INFO="${script_name}"
PATH_TRANSLATED="${script_name}"

@ -7,7 +7,7 @@
.Nd a Gopher server in a shell script
.Sh SYNOPSIS
.Nm gosher
.Op Ar PORT Op Ar GOPHERDIR
.Op Ar GOPHERDIR Op Ar HOSTNAME Op Ar PORT
.Sh DESCRIPTION
.Pp
.Ic gosher
@ -24,6 +24,8 @@ protocol has assigned port 70 by IANA.
uses
.Em netcat(1)
to listen for incoming connections on the specified
.Ar HOSTNAME
(defaults to 'localhost' if not specified) and
.Ar PORT
(defaults to 70 if
.Ar PORT

Loading…
Cancel
Save