The Multipart parser is used for working with the request body in the multipart format. This parser creates a hash table where the names of the request body parameters are the keys and the values of the corresponding parameters are the hash table values. The elements of this hash table need to be referred to by using the names of the parameters.
The parameter name in the point can be a regular expression of the Ruby programming language.
The Multipart parser can only be used in the point together with the Post filter that refers to the baseline request body.
POST http://example.com/login/index.php HTTP/1.1 Content-Type: multipart/form-data;boundary="boundary" --boundary Content-Disposition: form-data; name="id" 01234 --boundary Content-Disposition: form-data; name="username" admin
request, the Multipart parser applied to the request body creates the following hash table:
POST_MULTIPART_id_valuepoint refers to the
01234value that corresponds to the
idkey from the hash table created by the Multipart parser.
POST_MULTIPART_username_valuepoint refers to the
adminvalue that corresponds to the
usernamekey from the hash table created by the Multipart parser.
The request body in the multipart format may also contain the following complex data structures: arrays and hash tables. Use the Array and Hash filters correspondingly to address the elements in these structures.