request-match
Use this entry to define the pattern to be matched against the HTTP request line, which includes method, URI, and protocol.
request-match = {request|response}:<request-line>
Description
This entry defines the pattern to be matched against the HTTP request line, which includes method, URI, and protocol.
We can also match a request using a host header. Use this option to selectively enable this function for a particular virtual host junction. To selectively match an entry based on a particular host header, add a prefix to the <request-line> with the string [<host>]. If We use this mechanism to match the request to a rule, the evaluation of the rule occurs early in the request processing. As a result, credential attributes are not available in the evaluation of the rule. To use credential attributes in the request transformation, use the alternative POP mechanism for invoking the rule.
Options
{request | response} Determines whether the processing is conducted on the HTTP request or response. This value can be request or response. request-line Contains the request line to be matched against. The pattern matching is case-sensitive. We can use wildcard characters *and?.
Usage: Optional
We can specify multiple entries if needed.
Default value None.
Example:
request-match = request:GET /index.html HTTP/1.1 request-match = response:GET /jct/* * request-match = response:[www.ibm.com]GET /login/*
Parent topic: [http-transformations:<resource-name>] stanza