The Form_urlencoded parser is used for working with the request body in the form-urlencoded 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 Form_urlencoded parser can only be used in the point together with the Post filter that refers to the baseline request body.
The request body in the form-urlencoded 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.
POST http://example.com/login/index.php HTTP/1.1 Content-Type: application/x-www-form-urlencoded
request with the
body, the Form_urlencoded parser applied to the request body creates the following hash table:
POST_FORM_URLENCODED_id_valuepoint refers to the
01234value that corresponds to the
idkey from the hash table created by the Form_urlencoded parser.
POST_FORM_URLENCODED_username_valuepoint refers to the
Johnvalue that corresponds to the
usernamekey from the hash table created by the Form_urlencoded parser.