No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fat AP and Cloud AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
portal redirect-302 enable

portal redirect-302 enable

Function

The portal redirect-302 enable command enables redirection based on the status code 302 for Portal authentication.

The undo portal redirect-302 enable command disables redirection based on the status code 302 for Portal authentication.

By default, redirection based on the status code 302 is disabled for Portal authentication.

Format

portal redirect-302 enable

undo portal redirect-302 enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

HTTP status codes 200 and 302 correspond to different redirection modes. During redirection based on the status code 200 OK, the URL information is in the URL field of an HTTP packet. During redirection based on the status code 302, the URL information is in the Location field of an HTTP packet. By default, the device performs redirection based on the status code 200 OK. Some applications need to use redirection based on the status code 302. In this case, you can run this command to enable this function.

Precautions

After redirection based on the status code 302 is configured for Portal authentication, the portal redirect js enable configuration is invalidated.

Example

# Enable redirection based on the status code 302 for Portal authentication.

<Huawei> system-view
[Huawei] portal redirect-302 enable
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 203351

Downloads: 122

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next