ICI Modules: cgi: query_string_to_struct


Modules by name : by type

Synopsis

struct = cgi.query_string_to_struct([string])

Description

Converts an string containing the encoded HTTP form data and returns a struct object containing the fields and their values.

If no string is passed the process environment is examined to determine the type of HTTP request, a PUT or POST, and the query string data is sourced appropriately (i.e, it is read from the environment variable QUERY_STRING for a PUT and from the standard input for a POST).

The fields and values in the query string are unencoded and used as the keys and values for elements in the returned struct object. All keys are values are string objects.