Askemos Forum

redirecting the browser23. September 2004
Sometimes it's useful to redirect read requests, here is how.

A typical use of redirection would be to redirect read requests to a directory to the index.html page in the directory. That's what popular web servers usually do. To achieve that effect return this:

   <d:output d:xmlns="mind" d:location="
  (read-locator (msg 'location-format)
    `("index.html" . ,(msg 'location)))
">
    <d:copy-of select="(fetch "index.html")">
   </d:output>

Note that an attribute location is attached to the output element. The protocol adaptor will create the appropriate HTTP headers and code.

bmw 325 timing chain 2. August 2008
Reply
Subject
Abstract (up to 200 characters)
Full Text
When you post, you might receive a timeout error... just push the reload button in that case.
Intro - slides
Askemos Wiki
Publikationen