Looking for a specific HTTP Header
fritz-bayer_at_web.de
Date: 01/06/05
- Previous message: Tauno Voipio: "Re: Setting Up NTP for Time Sync"
- Next in thread: Davide Bianchi: "Re: Looking for a specific HTTP Header"
- Reply: Davide Bianchi: "Re: Looking for a specific HTTP Header"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 6 Jan 2005 05:28:23 -0800
Hi,
I have the following problem, which I want to solve in a particular
way, without using http redirects like 301 or 302.
Let me first describe the Problem:
I have a browser that requests a page, say
"/exampledirectory/example.html".
The response to that request should be data from a different document
located at "/whatever.html", but it could be from any other location on
the server.
That document contains links, which are relative to the location of it
(for example image/picture.gif) and point to other resources.
Now, my question is if there are http headers, which the server can
return so that the Browser will end up like this:
In the browser the uri "/exampledirectory/example.html" gets displayed.
The content displayed in the browser is the HTML from "whatever.html"
and the links in it are not broken.
The later thing is the tricky part. Getting the content to the browser
from is possible.
However, all links are broken, because the Browser thinks that it is in
the directory "/exampledirectory/", when it is in fact in "/".
I know this can be solved using redirects but that is not what I'm
looking for. I'm looking for a http response header, which tells the
client that the content returned has to be treated as if the document
was fetched from the root directory "/".
Do you know if such a http header exists (as I said I don't want to use
the Location Header or any other form of redirects. The client should
NOT be forced to iniate another request to get the document.
- Previous message: Tauno Voipio: "Re: Setting Up NTP for Time Sync"
- Next in thread: Davide Bianchi: "Re: Looking for a specific HTTP Header"
- Reply: Davide Bianchi: "Re: Looking for a specific HTTP Header"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|