active-charging service ruledef http host

Configures rule expression to match value in HTTP Host Request header field.

Privilege Level

Security Administrator, Administrator

Syntax

http host [ case-sensitive ] operator host_name 

operator

Specify how to match.

Must be one of the following:

  • !=: Does not equal.

  • !contains: Does not contain.

  • !ends-with: Does not end with.

  • !starts-with: Does not start with.

  • =: Equals.

  • contains: Contains.

  • ends-with: Ends with.

  • starts-with: Starts with.

  • regex: Regular expression.

host-string host_name

Specify the host name to match.

Must be a string.

case-sensitive

Specify that the rule expression be case-sensitive. By default, rule expressions are not case-sensitive.

Usage Guidelines

Use this command to define rule expressions to match value in HTTP Host request-header field.

Example

The following command defines a rule expression to match "host1" in HTTP Host request-header field:
http host = host1