开发者

What is the correct terminology for breaking up a URI into its component parts?

Suppose we have a string "http://www.example.com/feed". I am breaking this string up into three pieces for use with Apache's URI class: 1. "http" 开发者_如何学C 2. "www.example.com" 3. "/feed"

Is there a proper term for this process of breaking down a URI into its component pieces?


A uri can be parsed into it's component parts:

The following are two examples from the RFC3986:

     foo://example.com:8042/over/there?name=ferret#nose
     \_/   \______________/\_________/ \_________/ \__/
      |           |            |            |        |
   scheme     authority       path        query   fragment
      |   _____________________|__
     / \ /                        \
     urn:example:animal:ferret:nose

A uri can be either a url or a urn.


Split or parse? I think it's really semantics, and there's not an agreed upon term.


I would always use the term parsing.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜