Handbook
Glossary
<cgi-form> ( -- assoc )
CGI (Common Gateway Interface)
Next:
<cgi-simple-form> ( -- assoc )
Vocabulary
cgi
Inputs
None
Outputs
assoc
an
assoc
Word description
Parse a CGI request into an
assoc
. Multiple parameters are passed as a list for each key.
Definition
USING:
cgi.private
combinators
environment
kernel
unicode
;
IN:
cgi
:
<cgi-form>
( -- assoc )
"REQUEST_METHOD"
os-env
"GET"
or
>upper
{
{
"GET"
[
parse-get
]
}
{
"POST"
[
parse-post
]
}
[
"Unknown request method"
throw
]
}
case
;