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 &.
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 } *
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. |
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.