<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="5" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[5]</anchor-end> かつて <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">URL</anchor> の構文要素として <dfn>params</dfn>、<dfn>param</dfn> が定義されていました。</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="6" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[6]</anchor-end> 現在は<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">パス<title xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:">URL path</title></anchor>の一部として扱われ、特別な意味は持っていません。</p><section><h1>構文</h1><history xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><ul xmlns="http://www.w3.org/1999/xhtml"><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> <code class="ABNF"><dfn>params</dfn>      := <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">param</anchor> *( &quot;;&quot; param ) ;; <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 1808</anchor></code></li><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end> <code class="ABNF"><dfn>param</dfn>       := *( pchar / &quot;/&quot; ) ;; RFC 1808</code></li></ul><p xmlns="http://www.w3.org/1999/xhtml"><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 2396</anchor> では 
<code class="ABNF"><dfn><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">segment</anchor></dfn> := *<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">pchar</anchor> *( &quot;;&quot; param )</code>, 
<code class="ABNF"><dfn><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">param</anchor></dfn> := *pchar</code> です。 RFC 1808 
では一節を裂いていたのに 2396 では tone down して <code class="ABNF"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">path_segment</anchor></code> のおまけ扱いです。</p><p xmlns="http://www.w3.org/1999/xhtml">もっとも、 1808 までは URI の一番最後の <code class="ABNF"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">query</anchor></code>
直前だけが<ruby>引数<rt>パラメーター</rt></ruby>だったのが、 2396 では 
<code class="ABNF">path</code> 内のどの <code class="ABNF">segment</code> 
にもつけれるようになったという意味では進化しています。</p></history></section><section><h1>文脈</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="4" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[4]</anchor-end> 次の場面で使われています。<figure class="short list"><ul><li><code class="URI" xml:lang="en">ftp:</code></li><li><code class="URI" xml:lang="en">;save</code><ul><li><code class="URI" xml:lang="en">sftp:</code></li><li><code class="URI" xml:lang="en">scp:</code></li></ul></li><li><code>prospero:</code></li></ul></figure></p></section><section><h1>歴史</h1><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="9" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[9]</anchor-end> RFC 1808 (相対 URL) 2.4.5.  Parsing the Parameters</figcaption><blockquote><p>If the parse string contains a semicolon &quot;;&quot; character, then the
substring after the first (left-most) semicolon &quot;;&quot; and up to the end
of the parse string is the parameters (&lt;params&gt;).  If the semicolon
is the last character, or no semicolon is present, then &lt;params&gt; is
empty.  The matched substring, including the semicolon character, is
removed from the parse string before continuing.</p></blockquote><p>解析文字列がセミコロン <code class="char">;</code>
文字を含んでいるなら、最初の (最左の) セミコロン
<code class="URI">;</code> の後から解析文字列の最後までは引数
(<code>&lt;params&gt;</code>) です。
セミコロンが最後の文字であるか、セミコロンが現れないなら、
<code>&lt;params&gt;</code> は空です。
一致した部分文字列は、セミコロンも含めて、続行する前に解析文字列から削除します。</p></figure><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="10" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[10]</anchor-end> RFC 2396 (URI) 3.3 抜粋</figcaption><blockquote><p>Each path segment may include a sequence of parameters, indicated by the semicolon &quot;;&quot; character. The parameters are not significant to the parsing of relative references.</p></blockquote><p>各経路 segment は引数の列を含めることができまして、
これはセミコロン <code class="URI">;</code> 文字で示します。
引数は相対 URI の解析には意味を持ちません。</p></figure><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="8" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[8]</anchor-end> <cite xml:lang="en">84409 – URL: relative URLs break if if base URL has &quot;;&quot; character</cite>
( (<time>2016-06-12 00:25:31 +09:00</time>))
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://bugzilla.mozilla.org/show_bug.cgi?id=84409">https://bugzilla.mozilla.org/show_bug.cgi?id=84409</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="7" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[7]</anchor-end> <cite xml:lang="en">448141 – Unable to open file with special characters in file:// ftp:// listing (&quot;;&quot;, semicolon, in file name)</cite>
( (<time>2016-06-12 00:25:09 +09:00</time>))
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://bugzilla.mozilla.org/show_bug.cgi?id=448141">https://bugzilla.mozilla.org/show_bug.cgi?id=448141</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="11" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[11]</anchor-end> <cite xml:lang="ja">都税 クレジットカードお支払サイト</cite>
(<time>2016-12-16 09:25:43 +09:00</time>)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://zei.tokyo/about-this-site.action;jsessionid=503ec08b6e8a7a3637f9583497d7">https://zei.tokyo/about-this-site.action;jsessionid=503ec08b6e8a7a3637f9583497d7</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="12" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[12]</anchor-end> <cite>Yocto Project Reference Manual</cite>
(<time>2017-11-20 17:34:04 +09:00</time>)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://www.yoctoproject.org/docs/2.4/ref-manual/ref-manual.html#var-SRC_URI">http://www.yoctoproject.org/docs/2.4/ref-manual/ref-manual.html#var-SRC_URI</anchor-external></p><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="13" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[13]</anchor-end> <cite>BitBake User Manual</cite>
(<time>2017-11-20 17:34:41 +09:00</time>)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://www.yoctoproject.org/docs/2.4/bitbake-user-manual/bitbake-user-manual.html#http-ftp-fetcher">http://www.yoctoproject.org/docs/2.4/bitbake-user-manual/bitbake-user-manual.html#http-ftp-fetcher</anchor-external></figcaption><blockquote><p>Because URL parameters are delimited by semi-colons, this can introduce ambiguity when parsing URLs that also contain semi-colons, for example:</p><p>SRC_URI = &quot;http://abc123.org/git/?p=gcc/gcc.git;a=snapshot;h=a5dd47&quot;</p><p>Such URLs should should be modified by replacing semi-colons with '&amp;' characters:</p><p>SRC_URI = &quot;http://abc123.org/git/?p=gcc/gcc.git&amp;a=snapshot&amp;h=a5dd47&quot;</p><p>In most cases this should work. Treating semi-colons and '&amp;' in queries identically is recommended by the World Wide Web Consortium (W3C). Note that due to the nature of the URL, you may have to specify the name of the downloaded file as well:</p><p>SRC_URI = &quot;http://abc123.org/git/?p=gcc/gcc.git&amp;a=snapshot&amp;h=a5dd47;downloadfilename=myfile.bz2&quot;</p></blockquote></figure><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="14" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[14]</anchor-end> <cite>Yocto Project Development Tasks Manual</cite>
(<time>2017-11-20 17:35:23 +09:00</time>)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#new-recipe-makefile-based-package">http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#new-recipe-makefile-based-package</anchor-external></figcaption><blockquote><p>LIC_FILES_CHKSUM = &quot;file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \</p><p>file://include/common.h;beginline=1;endline=17;md5=ba05b07912a44ea2bf81ce409380049c&quot;</p></blockquote></figure><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="15" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[15]</anchor-end> <cite xml:lang="en">TipsAndTricks/NPM - Yocto Project</cite>
(<time>2016-10-21 09:06:14 +09:00</time>)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://wiki.yoctoproject.org/wiki/TipsAndTricks/NPM">https://wiki.yoctoproject.org/wiki/TipsAndTricks/NPM</anchor-external></figcaption><blockquote><p>SRC_URI = &quot;npm://registry.npmjs.org;name=cute-files;version=${PV}&quot;</p></blockquote></figure><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="16" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[16]</anchor-end> <cite>Matrix URIs - Ideas about Web Architecture</cite>, <time>2009-08-27T21:38:06.000Z</time>, <time>2020-12-29T06:45:41.159Z</time> <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://www.w3.org/DesignIssues/MatrixURIs.html">https://www.w3.org/DesignIssues/MatrixURIs.html</anchor-external></p></section></body></html>