Message values are values that are extracted from components of the HTTP message, WebSocket message, or connection details associated with an event that is being processed by Rules.
Note: HTTP message values that are accessible by WebSocket Rule operations refer to components of the originating ws:// or wss:// request that triggered the establishment of the WebSocket connection.
- auto-gen TOC: {:toc}
Key: SourceAddress
Rule Availability: HTTP
Example: 127.0.0.1
Host name without port.
Key: DestinationAddress
Rule Availability: HTTP, WebSocket
Example: www.example.com
Key: DestinationPort
Rule Availability: HTTP, WebSocket
Example: 80
http
or https
Key: HttpProtocol
Rule Availability: HTTP, WebSocket
Key: URL
Rule Availability: HTTP, WebSocket
Example: http://www.example.com/index.html?query=test
Key: WebSocketMessage
Rule Availability: WebSocket
Key: HttpRequestMessage
Rule Availability: HTTP, WebSocket
Example:
GET / HTTP/1.1
Host: www.example.com
User-Agent: Mozilla/5.0 Firefox/78.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: close
Upgrade-Insecure-Requests: 1
Pragma: no-cache
Cache-Control: no-cache
Key: HttpRequestStatusLine
Rule Availability: HTTP, WebSocket
Example: GET /path/to/page/index.html?claim=reset&type=plain HTTP/1.1
Key: HttpRequestMethod
Rule Availability: HTTP, WebSocket
Example: GET
Key: HttpRequestUri
Rule Availability: HTTP, WebSocket
Example: /path/to/page/index.html?claim=reset&type=plain
Key: HttpRequestUriPath
Rule Availability: HTTP, WebSocket
Example: /path/to/page/index.html
from /path/to/page/index.html?claim=reset&type=plain
Key: HttpRequestUriQueryParameters
Rule Availability: HTTP, WebSocket
Example: claim=reset&type=plain
from /path/to/page/index.html?claim=reset&type=plain
Key: HttpRequestUriQueryParameter
Rule Availability: HTTP, WebSocket
Example: Returns plain
using identifier type
given the request URI /path/to/page/index.html?claim=reset&type=plain
Key: HttpRequestHeaders
Rule Availability: HTTP, WebSocket
Example:
Host: www.example.com
User-Agent: Mozilla/5.0 Firefox/78.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Cookie: Preferences=local; AID=2Zy8
Connection: close
Upgrade-Insecure-Requests: 1
Pragma: no-cache
Cache-Control: no-cache
Key: HttpRequestHeader
Rule Availability: HTTP, WebSocket
Example: Based request header Accept-Encoding: gzip, deflate
, this returns gzip, deflate
using identifier Accept-Encoding
Example: gzip, deflate
at identifier Accept-Encoding
Key: HttpRequestCookie
Rule Availability: HTTP, WebSocket
Example: For cookie header Cookie: AID=2Zy8
, this returns 2Zy8
using identifier AID
Key: HttpRequestBody
Rule Availability: HTTP, WebSocket
Key: HttpResponseMessage
Rule Availability: HTTP
Example:
HTTP/1.1 404 Not Found
Accept-Ranges: bytes
Age: 354581
Cache-Control: max-age=604800
Content-Type: text/html; charset=UTF-8
Date: Mon, 07 Dec 2020 07:30:13 GMT
Expires: Mon, 14 Dec 2020 07:30:13 GMT
Last-Modified: Thu, 03 Dec 2020 05:00:32 GMT
Server: ECS (ord/5739)
Vary: Accept-Encoding
X-Cache: 404-HIT
Content-Length: 1256
Connection: close
Key: HttpResponseStatusLine
Rule Availability: HTTP
Example: HTTP/1.1 404 Not Found
Key: HttpResponseStatusCode
Rule Availability: HTTP
Example: 404
Key: HttpResponseStatusMessage
Rule Availability: HTTP
Example: Not Found
Key: HttpResponseHeaders
Rule Availability: HTTP
Example:
HTTP/1.1 404 Not Found
Accept-Ranges: bytes
Age: 354581
Cache-Control: max-age=604800
Content-Type: text/html; charset=UTF-8
Date: Mon, 07 Dec 2020 07:30:13 GMT
Set-Cookie: AID=2Zy8
Expires: Mon, 14 Dec 2020 07:30:13 GMT
Last-Modified: Thu, 03 Dec 2020 05:00:32 GMT
Server: ECS (ord/5739)
Vary: Accept-Encoding
X-Cache: 404-HIT
Content-Length: 1256
Connection: close
Key: HttpResponseHeader
Rule Availability: HTTP
Example: Based response header Cache-Control: max-age=604800
, this returns max-age=604800
using identifier Cache-Control
Key: HttpResponseCookie
Rule Availability: HTTP
Example: For cookie header Set-Cookie: AID=2Zy8
, this returns 2Zy8
using identifier AID
Key: HttpResponseBody
Rule Availability: HTTP