URI和URL的区别:
URI(uniform resource identifier):
资源标识
描述一个可被识别的名字或定位(相对或者绝对)或者二者都有
格式:3种划分
1)[scheme:]scheme-specific-part[#fragment]
2)[scheme:][//authority][path][?query][#fragment]
3)[scheme:][//host:port][path][?query][#fragment]
eg:http://www.ietf.org/rfc/rfc2396.txt
mailto:John.Doe@example.com
tel:+1-89-444-2323
telnet://192.0.2.16:80/
。。。
URL(uniform resource locator):
资源定位
描述一个可以绝对定位的资源
格式:scheme(协议类型)+地址+资源
eg:http://www.ietf.org/rfc/rfc2396.txt
URN(uniform resource name):
统一资源命名
作为标识的可识别的名字
格式:同URI
eg:mailto:java-net@java.sun.com
URI(uniform resource identifier):
资源标识
描述一个可被识别的名字或定位(相对或者绝对)或者二者都有
格式:3种划分
1)[scheme:]scheme-specific-part[#fragment]
2)[scheme:][//authority][path][?query][#fragment]
3)[scheme:][//host:port][path][?query][#fragment]
eg:http://www.ietf.org/rfc/rfc2396.txt
mailto:John.Doe@example.com
tel:+1-89-444-2323
telnet://192.0.2.16:80/
。。。
URL(uniform resource locator):
资源定位
描述一个可以绝对定位的资源
格式:scheme(协议类型)+地址+资源
eg:http://www.ietf.org/rfc/rfc2396.txt
URN(uniform resource name):
统一资源命名
作为标识的可识别的名字
格式:同URI
eg:mailto:java-net@java.sun.com