Cisco Cisco ASR 5700
ACS Ruledef Configuration Mode Commands
http url ▀
Command Line Interface Reference, StarOS Release 17 ▄
907
Hypertext Transfer Protocol
GET / HTTP/1.1\r\n
Request Method: GET
Request URI: /
Request Version: HTTP/1.1
Accept: */*\r\n
Accept-Language: fr\r\n
Accept-Encoding: gzip, deflate\r\n
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)\r\n
Host: www.google.fr\r\n
Connection: Keep-Alive\r\n
\r\n
Usage
Use this command to define rule expressions to match HTTP URL.
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.
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 9.
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