Looking for a specific HTTP Header

fritz-bayer_at_web.de
Date: 01/06/05

  • Next message: Davide Bianchi: "Re: Looking for a specific HTTP Header"
    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.


  • Next message: Davide Bianchi: "Re: Looking for a specific HTTP Header"

    Relevant Pages

    • Fwd: cdimage.debian.org presents different faces for "ftp" and "http" access
      ... redirects me to ... but pointing my browser at ... been built and the http server still needs to be synced. ...
      (Debian-User)
    • Re: [PHP] Smart Quotes not so smart
      ... I discovered that at least part of the problem is at the HTTP ... Although we already had the Content type charset set to UTF-8 in the ... header, the browser was still defaulting ... You still want the HTTP headers for older Firefox that actually ...
      (php.general)
    • Re: view http headers
      ... and wanna see http headers and form values ... > is there any plugin or tool for ie about this ... connects (because it runs as a proxy to which you connect your browser); ...
      (microsoft.public.windows.inetexplorer.ie6.browser)
    • Re: How to write something to a html textfield and send it?
      ... > No need for controlling any particular browser. ... I'm not familiar with HTTP user ... and building the request in your program. ... The server doesn't know anything about a textfield; ...
      (comp.programming)
    • Re: How can I follow a trail of 302 redirects with MSXML2.XMLHTTP?
      ... Dim sNextLocation, sMsg, iCount ... You won't get any content back as a part of the response, and the HTTP ... I shouldn't have to change settings in IE to control ... Redirects: 10 ...
      (microsoft.public.scripting.vbscript)