next up previous contents
Next: Aliases through GET Up: Overview Previous: POST method   Contents

GET method

The standard way to use this method is as follow:

http://server:port/object/verb?var1=value1&var2=value2

All variables are passed within the URL, have to be separated by & and have to be composed of their name and values (var1=value1). Hence, = and & are important. Passing variables like: verb?testvalue will not be caught; it needs to be defined by a name: verb?testvar=testvalue.

There is yet, another way to pass variables. This is for authentication purposes only; it goes as follow:

http://server:port/object?user=value1&passwd=value2

Hence, no verb is required. Now of course, there must be a proxy somewhere along the line to redirect to one if none is provided: it's called Aloha_default() and will need to be written on object #1. Eventually, several of them will be provided for specific objects, such as #3, #6, etc...

A singular case is the default page:

http://server:port/

Here again, a target verb needs to be defined. If .html_path is defined, then default_index will be used, which implies that the index file will be a pure static HTML file somewhere on your box, handled by apache or any standard web server.

Aloha is a standalone Web server. However, it can deliver only TEXT (at this point). Therefore, if you have the need to server pictures, you will need to rely on other web server running on port 80 (or other). The GUI WILL need apache to display the buttons for instance. However, you can always change that and replace them with text in order to avoid this issue.


next up previous contents
Next: Aliases through GET Up: Overview Previous: POST method   Contents
Kr@nX 666 2004-01-04