NAME

    A2E::Cgidok

DESCRIPTION

parse web urls like

    http://a2e.de?dok=oas0711

and redirect to the appropriate URL.

To be invoked from Apache configuration files with directives like

    RewriteRule ^/$ http://a2e.de/cgi-bin/dok [R,L]

The executable Perl application, called 'dok' here, will only contain a few lines of code such as

    use A2E::Cgidok;
    $p = new_ready A2E::Cgidoks daba => 'a2e', hosturl => 'http://a2e.de', dok => 'oas', dokurl => 'http://a2e.de/oas';
    $p->process;

The parameters for 'new_ready A2E::Cgidoks' can also be passed via configuration files cgidok.konf. Depending on these parameters, be usable on various websites.

The 'dok' application can be invoked from the command line for testing purposes as follows:

    dok dok=oas0711

IMPLEMENTATION

Initialisation

Function defvars

Internal Functions

Function seturl

Collect and analyse information about the URL to which we shall redirect

Function seturi

Replace remote url with local url if we are browsing on the local machine.

Function append_query_string

User-Invocable Functions

Function cgidok_redir

redirect to the right url based on dok info from cgi parameters and configuration

THE END