RFC2732规范中URL中的文本IPv6地址的格式,
截取其中重要部分原文如下:
December 1999
This document defines the format for literal IPv6 Addresses in URL's
for implementation in World Wide Web browsers. This format has been
implemented in the IPv6 versions of several widely deployed browsers
including Microsoft Internet Explorer, Mozilla, and Lynx. It is also
intended to be used in the IPv6 version of the service location
protocol.
合法的ip地址书写格式是、This document incudes an update to the generic syntax for Uniform
Resource Identifiers defined in RFC 2396 [URL]. It defines a syntax
for IPv6 addresses and allows the use of "[" and "]" within a URI
explicitly for this reserved purpose.
The textual representation defined for literal IPv6 addresses in
[ARCH] is not directly compatible with URL's. Both use ":" and "."
characters as delimiters. This document defines the format for
literal IPv6 Addresses in URL's for implementation in World Wide Web
browsers. The goal is to have a format that allows easy "cut" and
"paste" operations with a minimum of editing of the literal address.
The format defined in this document has been implemented in the IPv6
versions of several widely deployed browsers including Microsoft
Internet Explorer, Mozilla, and Lynx. It is also intended to be used
in the IPv6 version of the service location protocol.
The keywords MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD,
SHOULD NOT, RECOMMENDED, MAY, and OPTIONAL, if and where they appear
in this document, are to be interpreted as described in [KEYWORDS].
国外地址书写格式,World Wide Web browsers SHOULD implement the format of IPv6 literals
in URL's defined in this document. Other types of applications and
protocols that use URL's MAY use this format.
To use a literal IPv6 address in a URL, the literal address should be
enclosed in "[" and "]" characters. For example the following
literal IPv6 addresses:
FEDC:BA98:7654:3210:FEDC:BA98:7654:32101080:0:0:0:8:800:200C:41713ffe:2a00:100:7031::11080::8:800:200C:417A::192.9.5.5::FFFF:129.144.52.382010:836B:4179::836B:4179
would be represented as in the following example URLs:
http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.htmlhttp://[1080:0:0:0:8:800:200C:417A]/index.htmlhttp://[3ffe:2a00:100:7031::1]http://[1080::8:800:200C:417A]/foohttp://[::192.9.5.5]/ipnghttp://[::FFFF:129.144.52.38]:80/index.htmlhttp://[2010:836B:4179::836B:4179]
This document updates the generic syntax for Uniform Resource
Identifiers defined in RFC 2396 [URL]. It defines a syntax for IPv6
addresses and allows the use of "[" and "]" within a URI explicitly
for this reserved purpose.
ipv6地址前缀?The following changes to the syntax in RFC 2396 are made:
(1) change the 'host' non-terminal to add an IPv6 option:
host = hostname | IPv4address | IPv6referenceipv6reference = "[" IPv6address "]"
where IPv6address is defined as in RFC2373 [ARCH].
(2) Replace the definition of 'IPv4address' with that of RFC 2373, as
it correctly defines an IPv4address as consisting of at most three
decimal digits per segment.
(3) Add "[" and "]" to the set of 'reserved' characters:
reserved = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" |"$" | "," | "[" | "]"
文本格式是什么?and remove them from the 'unwise' set:
unwise = "{" | "}" | "|" | "\" | "^" | "`"
The use of this approach to represent literal IPv6 addresses in URL's
does not introduce any known new security concerns.
顺便说下,里面的英文还是比较简单的,别怕还有在线翻译工具呢~
RFC 2732 Format for Literal IPv6 Addresses in URL's
文本文档怎么改格式、文本IPv6地址在URL上的格式
版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态