diff --git a/doc/latex/cgi-script.tex b/doc/latex/cgi-script.tex index f364f87..09bcca9 100644 --- a/doc/latex/cgi-script.tex +++ b/doc/latex/cgi-script.tex @@ -1,21 +1,24 @@ -\chapter{CGI scripts}\label{cha:cgi-scripts} +\chapter{Writing CGI Scripts in Scheme}\label{cha:cgi-scripts} % -\begin{description} -\item[Used files:] cgi-script.scm -\item[Name of the package:] cgi-script -\end{description} -% -\section{Procedures} +The \ex{cgi-scripts} structure provides functionality useful for +writing CGI scripts in Scheme. -\begin{defundesc}{cgi-form-query}{}{data-alist} +\defun{cgi-form-query}{}{data-alist} +\begin{desc} CGI scripts receive their parameters in various ways, depending on - how they were called (e.g. by ``GET'' method). This procedure - translates the delivered form data into an alist of decoded strings, - using the environment variables set by the server - (\ex{REQUEST\_METHOD}, \ex{QUERY\_STRING} (``GET'' script), - \ex{CONTENT\_LENGTH} (``POST'' script)). So a query string like - \codex{button=on\&\ob{}reply=Oh,\ob{}\%20yes} becomes alist - \codex{(("button" . "on") ("reply" . "Oh, yes"))} This only works for - GET and POST methods. -\end{defundesc} + how they were called (e.g.\ by \ex{GET} method). + + This procedure translates the delivered form data into an alist of + decoded strings, using the environment variables set by the server + (\ex{REQUEST\_METHOD}, \ex{QUERY\_STRING} (for a \ex{GET} request), + \ex{CONTENT\_LENGTH} (for a \ex{POST} request)). So a query string + like \codex{button=on\&\ob{}reply=Oh,\ob{}\%20yes} becomes an alist + \codex{(("button" . "on") ("reply" . "Oh, yes"))}. + + \ex{Cgi-form-query} only works for \ex{GET} and \ex{POST} methods. +\end{desc} +%%% Local Variables: +%%% mode: latex +%%% TeX-master: "man" +%%% End: