Seak, Teng-Fong wrote:

> Caldarale, Charles R wrote:
>
>>> From: hanasaki [mailto:[EMAIL PROTECTED] Subject: how are
>>> relative pages/images retrieved?
>>>
>>> the page
>>>     http://localhost/a/b/c
>>> has an href to
>>>     ../images/image1.gif
>>>
>>> how is it that the websever knows to convert this into
>>>     http://localhost/a/b/images.gif
>>>   
>>
>>
>> I believe that it's the client (browser) that forms an absolute URL
>> based on that of the current page.  The client must request each href
>> independently from the server, although HTTP 1.1 allows them to be
>> batched together.
>>
>> - Chuck
>>  
>>
>    It's definitely the client's job to request every resource using
> absolute path.  This must be written in some RFC if you're interested.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
Yes.  Specifically the HTML spec 4.01 section 12.4.1 and RFC 1808 both
describe how the client must be able to deterimine a base URI for
resolving all relative URIs.

See http://www.w3.org/TR/html4/struct/links.html, bottom of the page.

--David


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to