Vocabulary
cgi

Inputs and outputs
assocan assoc


Word description
Parse a CGI request into an assoc. Multiple parameters are passed as a list for each key.

Definition


: <cgi-form> ( -- assoc )
"REQUEST_METHOD" os-env "GET" or >upper {
{ "GET" [ parse-get ] }
{ "POST" [ parse-post ] }
[ "Unknown request method" throw ]
} case ;