RFC2732规范中URL中的文本IPv6地址的格式,

截取其中重要部分原文如下:

RFC 2732 Format for Literal IPv6 Addresses in URL's

December 1999

Abstract

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.

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.

1.Introduction

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.

1.1.Requirements

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.

2.Literal IPv6 Address Format in URL's Syntax

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:

  1. FEDC:BA98:7654:3210:FEDC:BA98:7654:3210
  2. 1080:0:0:0:8:800:200C:4171
  3. 3ffe:2a00:100:7031::1
  4. 1080::8:800:200C:417A
  5. ::192.9.5.5
  6. ::FFFF:129.144.52.38
  7. 2010:836B:4179::836B:4179

would be represented as in the following example URLs:

  1. http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html
  2. http://[1080:0:0:0:8:800:200C:417A]/index.html
  3. http://[3ffe:2a00:100:7031::1]
  4. http://[1080::8:800:200C:417A]/foo
  5. http://[::192.9.5.5]/ipng
  6. http://[::FFFF:129.144.52.38]:80/index.html
  7. http://[2010:836B:4179::836B:4179]

3.Changes to RFC 2396

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.

The following changes to the syntax in RFC 2396 are made:

(1) change the 'host' non-terminal to add an IPv6 option:

  1. host = hostname | IPv4address | IPv6reference
  2. ipv6reference = "[" 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:

  1. reserved = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" |
  2. "$" | "," | "[" | "]"

and remove them from the 'unwise' set:

  1. unwise = "{" | "}" | "|" | "\" | "^" | "`"

4.Security Considerations

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上的格式

【】URL中的文本IPv6地址的格式RFC2732的更多相关文章

  1. 在 Linux 中自动配置 IPv6 地址

    在 Linux 中自动配置 IPv6 地址 在本文中,我们将学习如何为 ULA 自动配置 IP 地址. 何时使用唯一本地地址 唯一本地地址unique local addresses(ULA)使用 f ...

  2. YML文件中ipv6地址输入格式

    关于YML文件格式可以百度,这里只说ipv6:yml文件是注重格式的不能用tab键代替空格 ipv4 :10.1.202.9 ipv6: 2001:202::6e4:f32b:c19c:4760 端口 ...

  3. URL中使用IPv4,IPv6和主机名

    在浏览器的Http请求的URL中如何使用IPv4,IPv6和主机名, 因为IPv6的地址需要加[],导致用法有点区别, 下面通过具体的例子总结一下不同情况下的用法. 1.假设有台Linux主机名配置如 ...

  4. 将网址url中的参数转化为JSON格式的两种方法

    在我们进入主题前,我先先看下获取网址URL的方法: window.location.href // 设置或获取整个URL为字符串 window.location.hash // 设置或获取href属性 ...

  5. 将网址url中的参数转化为JSON格式

    网上方法很多,各种奇技淫巧,这里贴上一种较为正常的思路. 主要利用split对获取的字符串不断进行分割,最后获得所需要的格式. 代码如下 <!DOCTYPE html> <html ...

  6. IPv6地址在URL上的格式

    转自:http://www.cnpaf.net/Class/RFC/200408/983.html 摘要 本文档定义了在WWW浏览器的URL中执行的文本IPv6地址的格式.在包括Microsoft的I ...

  7. ipv6地址在URL中的表达方式,如何在URL地址中包含ipv6地址

    摘要 本文档定义了在WWW浏览器的URL中执行的文本IPv6地址的格式.在包括Microsoft的IE,Mozilla和Lynx等几个已经被广泛安装使用的浏览器的IPv6版本中,这种格式已经被使用.并 ...

  8. 在UNC(通用命名规范)路径和URL中使用IPv6地址

    转自:http://www.ipv6bbs.cn/thread-348-1-1.html   虽然微软在支持IPv6上表现得很积极,但Windows却并没有完整地支持IPv6,例如,在Windows中 ...

  9. PHP中有关IPV4 和IPV6地址转换以及其它一些常见问题

    这里主要介绍一下 IPV4 / IPV6 在 PHP / MySQL 中如何转换.以及中间容易碰到的一些问题. 首先介绍两个函数: ip2long:将 IPV4 的字符串互联网协议转换成长整型数字 i ...

随机推荐

  1. ajaxSubmit返回JSON格式

    开发时遇到根据不同情况返回错误提示信息的需求,用到了ajax中返回json格式数据的. 前台请求代码: <script type="text/javascript">  ...

  2. Static data members in C++

    Predict the output of following C++ program: 1 #include <iostream> 2 using namespace std; 3 4 ...

  3. Mysql多字段模糊查询

    MySQL同一字段多值模糊查询 一. 同一字段多值模糊查询,使用多个or进行链接,效率不高,但没有更好的解决方案.(有看到CHARINDEX 关键字,可查询结果并不是模糊,举个栗子 例如SELECT ...

  4. 【Matlab】find函数用法

    find(A):返回向量中非零元素的位置 注意返回的是位置的脚标 //类似python,还是很好用的 如果是二维矩阵,是先横行后列的 b=find(a),a是一个矩阵,查询非零元素的位置 如果X是一个 ...

  5. 使用IDEA整合spring4+spring mvc+hibernate

    配置文件 spring-mvc.xml 1 <?xml version="1.0" encoding="UTF-8"?> 2 <beans x ...

  6. TCP链接请求的10种状态

    一.状态显示 SYN_SENT:这个状态与SYN_RCVD遥相呼应,当客户端SOCKET执行CONNECT连接时,它首先发送SYN报文,随即进入到了SYN_SENT状态,并等待服务端的发送三次握手中的 ...

  7. HGAME2021 week2 pwn writeup

    week2一共有4道pwn题 killerqueen 有格式化字符串漏洞,题不算难,但是故事情节真实让人摸不着头脑,但是仔细分析分析,理清楚逻辑就可以做了. 第一次choose1的时候,可以输入0,泄 ...

  8. 使用bochs调试汇编程序

    使用bochs调试汇编程序 前面我们已经搭建好了bochs的环境,并且将我们的汇编程序写入了硬盘里面,现在我们来看看如何通过bochs来调试我们的程序. 前文:https://www.cnblogs. ...

  9. jenkins+docker+k8s项目发布

    目录 一.简介 二.新建docker-build工程 三.项目部署 四.访问测试 一.简介 1.该章节基于jenkins.Harbor.pipeline.k8s来做发布,如对这些不熟悉,请按以下进入学 ...

  10. Python3.6+Django2.0以上 xadmin站点的配置和使用

    1. xadmin的介绍 django自带的admin站点虽然功能强大,但是界面不是很好看.而xadmin界面好看,功能更强大,并完全支持Bootstrap主题模板.xadmin内置了丰富的插件功能. ...