qsparse
目次
Usage
qsparse [-r] [-s size] [query]
Description
This program analyzes query that is based on x-www-form-urlencoded format and places the results in environment variables.For example, if we execute:
qsparse 'name=alice&age=18'then environment variables
QS_name
and QS_age
are created, and their contents are 'alice' and '18' respectively.Prefix
QS_
are put to each names because we should protect system environment variables against malicious clients.
The meaning of options and argument are as follows:
-r
option removes CR code from environment variable
-s size
specify buffer size to readquery
. [default=16KB]
- if
query
is omitted, then qsparse readquery
from stdin.
qsparse
is designed to process simple query, that is:- in case of repeated names in query,
qsparse
put them into an array elements.
- there is an upper limit of the size of environment variable
qsparse
assumes the names in query consist of alpha-numeric