ENF News Bot
Automated News Bot
- Joined
- Apr 15, 2022
- Messages
- 4,544
Rules expressions can inspect response cookies by name using two fields:
For example, use this expression in a Response Header Transform Rule to match a response that sets an
Both fields map URL-decoded cookie names to arrays of values. Duplicate names retain multiple values. Cookie attributes such as
The current field reflects changes from earlier phases. The raw field preserves the original cookies. Normal within-phase field immutability still applies.
For details, refer to the
Continue reading...
http.response.set_cookies: Parsed cookies from the current response headers.raw.http.response.set_cookies: Parsed cookies from the original response headers.
For example, use this expression in a Response Header Transform Rule to match a response that sets an
app cookie to preview:http.response.set_cookies["app"][0] eq "preview"Both fields map URL-decoded cookie names to arrays of values. Duplicate names retain multiple values. Cookie attributes such as
Path and HttpOnly are excluded.The current field reflects changes from earlier phases. The raw field preserves the original cookies. Normal within-phase field immutability still applies.
For details, refer to the
http.response.set_cookies and raw.http.response.set_cookies field references.Continue reading...