Print

对接第三方服务器进行远程Portal认证时,页面跳转出现强制转换字符

2020-09-27 发表

组网及说明

问题描述

远程Portal认证时,页面跳转出现强制转换字符   

过程分析

从R5431及以后的版本,版本根据RFC 3986协议的要求将部分特殊字符转换成%XX编码,由于部分第三方服务器侧不识别转义后的字符,导致URL页面弹出有问题,并且在终端手动输入转义的URL后页面可以正常弹出,服务器侧识别存在问题。

RFC 3986                   URI Generic Syntax               January 2005

   URIs that differ in the replacement of an unreserved character with

   its corresponding percent-encoded US-ASCII octet are equivalent: they

   identify the same resource.  However, URI comparison implementations

   do not always perform normalization prior to comparison (see Section

   6).  For consistency, percent-encoded octets in the ranges of ALPHA

   (%41-%5A and %61-%7A), DIGIT (%30-%39), hyphen (%2D), period (%2E),

   underscore (%5F), or tilde (%7E) should not be created by URI

   producers and, when found in a URI, should be decoded to their

   corresponding unreserved characters by URI normalizers.

ers.

这里说明,如果URL里包含下划线underscore),协议要求将其转义成%5F

解决方法

通过服务器侧修改机制。