Connected: An Internet Encyclopedia
3.2. Base URL from the Encapsulating Entity

Up: Connected: An Internet Encyclopedia
Up: Requests For Comments
Up: RFC 1808
Up: 3. Establishing a Base URL
Prev: 3.1. Base URL within Document Content
Next: 3.3. Base URL from the Retrieval URL

3.2. Base URL from the Encapsulating Entity

3.2. Base URL from the Encapsulating Entity

If no base URL is embedded, the base URL of a document is defined by the document's retrieval context. For a document that is enclosed within another entity (such as a message or another document), the retrieval context is that entity; thus, the default base URL of the document is the base URL of the entity in which the document is encapsulated.

Composite media types, such as the "multipart/*" and "message/*" media types defined by MIME (RFC 1521, [4]), define a hierarchy of retrieval context for their enclosed documents. In other words, the retrieval context of a component part is the base URL of the composite entity of which it is a part. Thus, a composite entity can redefine the retrieval context of its component parts via the inclusion of a base-header, and this redefinition applies recursively for a hierarchy of composite parts. Note that this might not change the base URL of the components, since each component may include an embedded base URL or base-header that takes precedence over the retrieval context.


Next: 3.3. Base URL from the Retrieval URL

Connected: An Internet Encyclopedia
3.2. Base URL from the Encapsulating Entity