force-push

Function

The force-push command enables the forcible URL template or URL push function.

The undo force-push command disables the forcible URL template or URL push function.

By default, the forcible URL template or URL push function is disabled.

Format

force-push { url-template template-name | url url-address }

undo force-push

Parameters

Parameter

Description

Value

url-template template-name

Specifies the name of a pushed URL template.

It is a string of 1 to 31 case-sensitive characters without spaces.

url url-address

Specifies a pushed URL.

It is a string of 1 to 200 case-sensitive characters without spaces.

Views

AAA domain view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

After a user is successfully authenticated, the user is forcibly redirected to a web page when the user accesses web pages for the first time. In addition to pushing advertisement pages, the device can obtain user terminal information through the HTTP packets sent by the users, and apply the information to other services. There are two ways to push web pages:
  1. URL: pushes the URL corresponding to the web page.
  2. URL template: pushes the URL template. A URL template must be created. The URL template contains the URL of the pushed web page and URL parameters.

Prerequisites

The URL configured using the url (URL template view) command in the URL template view cannot be a redirection URL; otherwise, the command does not take effect.

Precautions

If an application program that actively sends HTTP packets is installed on the user terminal, the terminal has sent the HTTP packet before the user accesses a web page. Therefore, the user is unaware of the web page push process.

Example

# Push the URL template abc in the domain huawei.

<HUAWEI> system-view
[HUAWEI] aaa
[HUAWEI-aaa] domain huawei
[HUAWEI-aaa-domain-huawei] force-push url-template abc
Related Topics
url

Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.