diff --git a/README.md b/README.md index 0a90f88..6c15d4b 100644 --- a/README.md +++ b/README.md @@ -191,80 +191,22 @@ additional modification by the server. #### CGI Environment Variables -
-
GATEWAY_INTERFACE
-
- CGI version (for compatibility with RFC 3785).
- Example: "CGI/1.1" -
- -
SERVER_PROTOCOL
-
- The server protocol.
- Example: "GEMINI" -
+| Name | Example | +| --- | --- | +| GATEWAY_INTERFACE | ``CGI/1.1`` | +| SERVER_PROTOCOL | ``GEMINI`` | +| SERVER_SOFTWARE | ``jetforce/0.0.7`` | +| GEMINI_URL | ``gemini://mozz.us/cgi-bin/example.cgi/extra?hello%20world`` | +| SCRIPT_NAME | ``/cgi-bin/example.cgi`` | +| PATH_INFO | ``/extra`` | +| QUERY_STRING | ``hello%20world`` | +| SERVER_NAME | ``mozz.us`` | +| SERVER_PORT | ``1965`` | +| REMOTE_HOST | ``10.10.0.2`` | +| REMOTE_ADDR | ``10.10.0.2`` | +| TLS_CIPHER | ``TLS_AES_256_GCM_SHA384`` | +| TLS_VERSION | ``TLSv1.3`` | -
SERVER_SOFTWARE
-
- The server name and version.
- Example: "jetforce/0.0.7" -
- -
GEMINI_URL
-
- The entire URL that was requested by the client.
- Example: "gemini://mozz.us/cgi-bin/example.cgi/hello?world" -
- -
SCRIPT_NAME
-
- The part of the URL's path that corresponds to the CGI script location.
- Example: "/cgi-bin/example.cgi" -
- -
PATH_INFO
-
- The remainder of the URL's path after the SCRIPT_NAME.
- Example: "/hello" -
- -
QUERY_STRING
-
- The query string portion of the request URL.
- Example: "world" -
- -
SERVER_NAME / HOSTNAME
-
- The server hostname.
- Example: "mozz.us" -
- -
SERVER_PORT
-
- The server port number.
- Example: "1965" -
- -
REMOTE_HOST / REMOTE_ADDR
-
- The client's IP address.
- Example: "10.10.0.2" -
- -
TLS_CIPHER
-
- The negotiated TLS cipher
- Example: "TLS_AES_256_GCM_SHA384" -
- -
TLS_VERSION
-
- The negotiated TLS version.
- Example: "TLSv1.3" -
- -
#### CGI Environment Variables - Authenticated