NAME ^

CGI;QueryHash - A helper for classic CGI

SYNOPSIS ^

    load_bytecode 'CGI/QueryHash.pbc'

    parse_get_sub = get_global [ 'CGI'; 'QueryHash' ], 'parse_get'
    .local pmc    params_from_get
    params_from_get = parse_get_sub()

    parse_post_sub = get_global [ 'CGI'; 'QueryHash' ], 'parse_post'
    .local pmc    params_from_post
    params_from_post = parse_post_sub()

Functions ^

parse_get

Get parameters for GET method.

parse_post

Get parameters for POST method.

parse

Split into a hash. '[]' indicates that the value should be put into an array.

urldecode

convert %xx to char

HISTORY ^

Splitting of query string is taken from HTTP/Daemon.pir.

TODO ^

Better method names. Add stuff that Plumhead needs. Find or write a test suite for CGI.

SEE ALSO ^

runtime/parrot/library/HTTP/Daemon.pir, languages/plumhead/plumhead.pir, t/library/cgi_query_hash.t, http://hoohoo.ncsa.uiuc.edu/cgi/overview.html

AUTHOR ^

Bernhard Schmalhofer - <Bernhard.Schmalhofer@gmx.de>


parrot