WebStack

docs/redirection.html

755:139b1412b9c3
2008-02-03 paulb [project @ 2008-02-03 19:58:01 by paulb] Added measures to permit the usage of non-ASCII characters in plaintexts.
     1 <?xml version="1.0" encoding="iso-8859-1"?>     2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">     3 <html xmlns="http://www.w3.org/1999/xhtml"><head>     4   <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type" />     5   <title>Redirection</title>     6   <link href="styles.css" rel="stylesheet" type="text/css" /></head>     7 <body>     8 <h1>Redirection</h1><p>Instead of presenting information to a user when     9 that user visits a particular URL, we may instead choose to redirect    10 that user to another URL, at which there may be information to be    11 viewed. To redirect a user of an application, we can use the following    12 transaction method:</p><div class="WebStack">    13 <h3>WebStack API - Redirection</h3>    14 <p>WebStack provides the following method in transaction objects to perform redirection:</p>    15 <dl><dt><code>redirect</code></dt><dd>This method accepts a path value    16 suitable for use in response headers indicating the location to which a    17 user shall be redirected. An optional response code (see <a href="responses.html">"Responses and Presentation"</a>) can be specified to modify the meaning of the redirection (as defined in the HTTP specifications).</dd></dl></div><p>Since the path value must be usable in response header, it is necessary to transform paths as described in the <a href="path-value-encoding.html">"Encoding and Decoding Path Values"</a> document, and an example of redirection is given in that document.</p></body></html>