Skip to content

http.request.body.form.names

http.request.body.form.names Array<String>

The names of the form fields in an HTTP request.

Populated when the Content-Type header is application/x-www-form-urlencoded.

Names are not pre-processed and retain the original case used in the request. They are listed in the same order as in the request.

Duplicate names are listed multiple times.

The return value may be truncated if http.request.body.truncated is true.

  • Decoding: No decoding performed
  • Whitespace: Preserved
  • Non-ASCII: Preserved

Requires a Cloudflare Enterprise plan with a paid add-on.

Example value:

["username"]

Example usage:

any(http.request.body.form.names[*] == "username")
Categories:
  • Request
  • Body