<cgi-form> ( -- assoc )
CGI (Common Gateway Interface)

Next:<cgi-simple-form> ( -- assoc )


Vocabulary
cgi

Inputs
None

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 ;