Represents the incoming HTTP request in ZPE web execution. The web runtime creates it and exposes it through the REQUEST value; it is not normally constructed directly by a YASS program.
Request functions provide access to the request body, headers, URL path, cookies, query-string values, form data, sessions, server data, and uploaded files. All functions require permission level 0.
Availability: The Request object is documented as part of ZPE 1.14.4. Its body, content-type, method, path, cookie, form, and uploaded-file accessors were expanded in ZPE 1.14.11.
Object functions
- body [1.14.11+]
Returns the raw request body.
- content_type [1.14.11+]
Returns the request content type.
- cookies [1.14.11+]
Returns the request cookies as a map.
- files [1.14.11+]
Returns uploaded files keyed by their form field names.
- form [1.14.11+]
Returns submitted form fields as a map.
- get [1.14.4+]
Returns one query-string value, or all query-string values when no name is supplied.
- get_header [1.14.4+]
Returns one request header, or all request headers when no name is supplied.
- method [1.14.11+]
Returns the HTTP request method.
- path [1.14.11+]
Returns the requested URL path.
- post [1.14.4+]
Returns one submitted POST value, or all POST values when no name is supplied.
- post_raw [1.14.4+]
Returns submitted POST data without conversion.
- server_data [1.14.4+]
Returns server and request environment data.
- session [1.14.4+]
Returns one session value, or the complete session map when no name is supplied.

There are no comments on this page.
Comments are welcome and encouraged, including disagreement and critique. However, this is not a space for abuse. Disagreement is welcome; personal attacks, harassment, or hate will be removed instantly. This site reflects personal opinions, not universal truths. If you can’t distinguish between the two, this probably isn’t the place for you. The system temporarily stores IP addresses and browser user agents for the purposes of spam prevention, moderation, and safeguarding. This data is automatically removed after fourteen days. Your email address is stored so that replies can be sent to your email address.
Comments powered by BalfComment