< Home

parameter

Function

The parameter command sets the characters used in URL.

The undo parameter command restores the default characters.

By default, the start character is ?, assignment character is =, and delimiter is &.

Format

parameter { start-mark parameter-value | assignment-mark parameter-value | isolate-mark parameter-value } *

undo parameter { start-mark parameter-value | assignment-mark parameter-value | isolate-mark parameter-value } *

Parameters

Parameter

Description

Value

start-mark parameter-value

Changes the specified start character to ?.

The value is one case-sensitive character without spaces.

assignment-mark parameter-value

Specifies the assignment character of the URL parameters.

The value is one case-sensitive character without spaces.

isolate-mark parameter-value

Specifies the delimiter between URL parameters.

The value is one case-sensitive character without spaces.

Views

URL template view

Default Level

2: Configuration level

Usage Guidelines

The parameter command allows you to customize the characters in URL.

For example, if the URL configured by the url command in the URL template bound to a Portal server template is http://10.1.1.1, you can add the user MAC address, user IP address, and device system name to the URL by specifying the user_mac, user_ip, and device parameters.

When a user with IP address 10.1.1.11 and MAC address 0002-0002-0002 connects to an access device huawei, the access device redirects the user to http://10.1.1.1?user_mac=0002-0002-0002&user_ip=10.1.1.11&device=huawei for Portal authentication. In the redirect URL, ? is the default start character, = is the default assignment character, & is the delimiter between parameters.

Example

# Change the start character in a URL from # to ?.

<HUAWEI> system-view
[HUAWEI] url-template name huawei
[HUAWEI-url-template-huawei] parameter start-mark #
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >