Cisco Cisco ASR 5000
ACS Ruledef Configuration Mode Commands
http referer ▀
Command Line Interface Reference, StarOS Release 18 ▄
901
Usage
Use this command to define rule expressions to match value in HTTP Referer request-header field.
This feature allows an operator to collect or track all URLs visited during a particular subscriber session.
These URLs include the entire string of visited URLs, including all referral links. This information is output
in an Event Data Record (EDR) format to support reporting or billing functions.
For example, if a subscriber begins a mobile web session and clicks on the “Sports” link from the home deck,
and then selects ESPN and moves to an advertiser link, the operator can capture all URLs for that entire
session. During this period ACS collects the URLs for a particular subscriber session; collection can be
limited by time duration or number of URLs visited.
ACS generates EDRs that contain HTTP URL and the HTTP referer fields along with other fields.
In 14.0 and later releases, the ECS HTTP analyzer supports both CRLF and LF as valid terminators for HTTP
header fields.
The following table lists the special characters that you can use in regex rule expressions. For more
information on regex support, refer to the Enhanced Charging Service Administration Guide.
This feature allows an operator to collect or track all URLs visited during a particular subscriber session.
These URLs include the entire string of visited URLs, including all referral links. This information is output
in an Event Data Record (EDR) format to support reporting or billing functions.
For example, if a subscriber begins a mobile web session and clicks on the “Sports” link from the home deck,
and then selects ESPN and moves to an advertiser link, the operator can capture all URLs for that entire
session. During this period ACS collects the URLs for a particular subscriber session; collection can be
limited by time duration or number of URLs visited.
ACS generates EDRs that contain HTTP URL and the HTTP referer fields along with other fields.
In 14.0 and later releases, the ECS HTTP analyzer supports both CRLF and LF as valid terminators for HTTP
header fields.
The following table lists the special characters that you can use in regex rule expressions. For more
information on regex support, refer to the Enhanced Charging Service Administration Guide.
Table 7.
Special Characters Supported in Regex Rule Expressions
Regex Character
Description
*
Zero or more characters
+
Zero or more repeated instances of the token preceding the +
?
Match zero or one character
Important:
The CLI does not support configuring “?” directly, you must instead use
“\077”.
For example, if you want to match the string “xyz<any one character>pqr”, you must configure it as:
http host regex “xyz\077pqr”
In another example, if you want to exactly match the string “url?resource=abc”, you must configure it as:
http uri regex "url\\077resource=abc"
Where, the first “\” (backslash) is for the escaping of “?”, and then “\077” for specifying “?” to the CLI.
\character
Escaped character
\?
Match the question mark (\<ctrl-v>?) character
\+
Match the plus character
\*
Match the asterisk character
\a
Match the Alert (ASCII 7) character
\b
Match the Backspace (ASCII 8) character
\f
Match the Form-feed (ASCII 12) character
\n
Match the New line (ASCII 10) character
\r
Match the Carriage return (ASCII 13) character
\t
Match the Tab (ASCII 9) character
\v
Match the Vertical tab (ASCII 11) character
\0
Match the Null (ASCII 0) character