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:
-roption removes CR code from environment variable
-s sizespecify buffer size to readquery. [default=16KB]
- if
queryis omitted, then qsparse readqueryfrom stdin.
qsparse is designed to process simple query, that is:- in case of repeated names in query,
qsparseput them into an array elements.
- there is an upper limit of the size of environment variable
qsparseassumes the names in query consist of alpha-numeric