These are useful if you want more control, or if you want to employ some of the algorithms implemented in this module in other circumstances.
sys.stdin
).
The optional argument keep_blank_values is a flag indicating whether blank values in URL encoded queries should be treated as blank strings. A true value indicates that blanks should be retained as blank strings. The default false value indicates that blank values are to be ignored and treated as if they were not included.
The optional argument strict_parsing is a flag indicating what to do with parsing errors. If false (the default), errors are silently ignored. If true, errors raise a ValueError exception.
The optional argument keep_blank_values is a flag indicating whether blank values in URL encoded queries should be treated as blank strings. A true value indicates that blanks should be retained as blank strings. The default false value indicates that blank values are to be ignored and treated as if they were not included.
The optional argument strict_parsing is a flag indicating what to do with parsing errors. If false (the default), errors are silently ignored. If true, errors raise a ValueError exception.
content-type
header
Returns a dictionary just like parse_qs() keys are the
field names, each value is a list of values for that field. This is
easy to use but not much good if you are expecting megabytes to be
uploaded -- in that case, use the FieldStorage class instead
which is much more flexible. Note that content-type
is the
raw, unparsed contents of the content-type
header.
Note that this does not parse nested multipart parts -- use FieldStorage for that.
content-type
into a main
content-type and a dictionary of parameters.
<A
HREF="...">
.