July 2002
Intermediate to advanced
560 pages
11h 10m
English
Before they can actually be used, relative URIs must be resolved into absolute URIs. A “base” URI is added as the initial portion of the absolute URI. Thus a URI such as
website/images/picture.jpg
if it appears in an HTML Web page fetched from
https://foo.example.com/projects/
would be interpreted as
https://foo.example.com/projects/website/images/picture.jpg
This base information can be obtained from four sources [RFC 2396]:
Base URI information embedded in the document containing the relative URI
The URI of the object immediately containing the relative URI
The URI used to retrieve the overall object in which the relative URI appears
A base URI defined by the application context
Lower-numbered sources in this list dominate ...
Read now
Unlock full access