This site's content was compiled from 1993 to 2006. Beyond that, Google is your friend.

Webshort

Maintainer

Franck Arnaud

Description

Webshort provides a few classes that allow to compile a version of the Smalleiffel short command line utility for use on the web as a CGI program.

This provides a rudimentary yet convenient class browser for SmallEiffel.

Categories

Versions

Links

Details

A CGI (Common Gateway Interface) program is an executable that is launched by a web server in reply to an URL request.

SmallEiffel's short utility already has HTML output using one of the formats provided in the standard distribution. All is required to make that suitable as the output of a CGI program is to add a corresponding header, which this utility does. The other task required to make short a CGI program is to get the parameters for the request from CGI environment variables instead of the command line.

Class MINIMAL_CGI_QUERY provides parsing of the command line parameters. It's minimal in doing just what's required for that application, eg it does not deal with escaped characters, because they do not occur in this particular application.

The base format of a Webshort URL is:

http://<host>/<cgi-directory>/webshort[.exe]?class=<classname>

The options of the short utility can be enabled by adding "<option>=on". The options have the same name as in the original command line version of short (without leading dash). Both the W3C-recommended ';' and the traditional but sometimes problematic '&' are accepted as option separators. Using options an example URL is:

http://localhost/cgi-bin/webshort?class=real;short=yes

Supported compilers

Licensing

Google
 
Web eiffelzone.com