<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="4" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[4]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">電子メール</anchor>の<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">メッセージ</anchor>の <dfn><code class="822" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Base:</anchor></code></dfn>
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ヘッダー</anchor>は、<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">実体</anchor>の<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">基底URL</anchor>を指定するものでした。</p><section><h1>関連</h1><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> 類似する<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ヘッダー</anchor>に <code class="MIME" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Base:</anchor></code>
や <code class="MIME" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Location:</anchor></code> があります。</p></section><section><h1>歴史</h1><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:">URI</anchor> のアドレス空間の仕組みを用いた <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTTP</anchor>
や <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTML</anchor> のような仕組みが普及するにつれ、その<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">実体</anchor>内で基底
URI (<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">相対URI</anchor> を解決するときの基準の位置)
を明示する仕組みの必要性が高まりました。
(例えば電子メイル中で HTML と相対 URI を使う時に、元々 URI
を考慮に入れていない電子メイルでは解決方法がありません。)</p><p>そのため提案された方法の1つがこの Base: 欄で、<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">電子メイル</anchor>
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC822</anchor>) や<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">電子ニュース</anchor>で使うことを想定していました。</p><p>しかし結局普及せず、 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Base:欄</anchor>や 
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Location:欄</anchor>が登場することになります。</p><figure class="quote"><figcaption><p><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> RFC 1808 3.1.  Base URL within Document Content</p></figcaption><blockquote><p>Within certain document media types, the base URL of the document can
be embedded within the content itself such that it can be readily
obtained by a parser.  This can be useful for descriptive documents,
such as tables of content, which may be transmitted to others through
protocols other than their usual retrieval context (e.g., E-Mail or
USENET news).</p></blockquote><pre>   It is beyond the scope of this document to specify how, for each
   media type, the base URL can be embedded.  It is assumed that user
   agents manipulating such media types will be able to obtain the
   appropriate syntax from that media type's specification.  An example
   of how the base URL can be embedded in the Hypertext Markup Language
   (HTML) [3] is provided in an Appendix (Section 10).</pre><blockquote><p>Messages are considered to be composite documents.  The base URL of a
message can be specified within the message headers (or equivalent
tagged metainformation) of the message.  For protocols that make use
of message headers like those described in RFC 822 [5], we recommend
that the format of this header be:</p></blockquote><p>メッセージは合成文書と考えられます。メッセージの基底 URL
をメッセージの頭 (あるいは同様の札つきメタ情報) の中に指定出来ます。
RFC 822 で説明されているようなメッセージ頭を使うプロトコルでは、
この頭の形式をこんな風にするのを推奨します。</p><pre>      base-header  = &quot;Base&quot; &quot;:&quot; &quot;<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URL" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="&quot; absoluteURL &quot;">URL:&quot; absoluteURL &quot;</anchor-external>&quot;</pre><blockquote><p>where &quot;Base&quot; is case-insensitive and any whitespace (including that
used for line folding) inside the angle brackets is ignored.  For
example, the header field</p></blockquote><p>ここで、 &quot;Base&quot; は大文字・小文字を区別せず、角括弧中の空白間隔
(行折畳みに使われるものを含む) は全て無視されます。例えば、頭欄</p><pre>      Base: <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URL" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://www.ics.uci.edu/Test/a/b/c">URL:http://www.ics.uci.edu/Test/a/b/c</anchor-external></pre><blockquote><p>would indicate that the base URL for that message is the string
&quot;http://www.ics.uci.edu/Test/a/b/c&quot;.  The base URL for a message
serves as both the base for any relative URLs within the message
headers and the default base URL for documents enclosed within the
message, as described in the next section.</p></blockquote><p>はメッセージの基底 URL が &quot;&quot; であることを示します。メッセージの基底 URI
はメッセージ頭中の相対 URL の基底とメッセージに囲まれている文書の
既定の基底 URI の両方になります。詳しくは次の節で説明します。</p><blockquote><p>Protocols which do not use the RFC 822 message header syntax, but
which do allow some form of tagged metainformation to be included
within messages, may define their own syntax for defining the base
URL as part of a message.</p></blockquote><p>RFC 822 メッセージ頭構文を使わないが何らかの形の札付けしたメタ情報をメッセージ中に含めることが出来るプロトコルでは、基底
URI をメッセージの一部として定義するそれぞれの構文を定義しても構いません。</p></figure></section><section><h1>メモ</h1><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>IANA | Permanent Message Header Field Registry</cite>
( (<time>2011-09-28 08:08:10 +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.iana.org/assignments/message-headers/perm-headers.html">http://www.iana.org/assignments/message-headers/perm-headers.html</anchor-external></p><figure class="quote"><figcaption><p><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> <cite>HTTP::Response - search.cpan.org</cite>
(<time>2015-03-15 12:30:47 +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://search.cpan.org/dist/HTTP-Message/lib/HTTP/Response.pm#%24r-%3Ebase">http://search.cpan.org/dist/HTTP-Message/lib/HTTP/Response.pm#%24r-%3Ebase</anchor-external></p></figcaption><blockquote><p>A &quot;Content-Base:&quot; or a &quot;Content-Location:&quot; header in the response.</p><p>For backwards compatibility with older HTTP implementations we will also look for the &quot;Base:&quot; header.</p></blockquote></figure></section></body></html>