# cgi

&Lauri.Watts;&Lauri.Watts.mail;

The CGI slave provides a way to execute CGI programs without the need to have a running web server. This can for example be used for local testing of CGI programs or for using search engines that only provide a CGI frontend like the one from Doxygen.

The slave implements the `cgi:` protocol. It uses the filename from the given &URL; and searches a configurable list of folders.

The list of folders can be retrieved using the command ``kde4-config` `--path cgi`` . The value defaults to `$`HOME`/.kde4/cgi-bin/`.

Use the &systemsettings; module CGI Script (launched with ``kcmshell4` `kcmcgi`` ) to add or remove additional user defined paths that are searched for CGI scripts.

If this kioslave finds an executable with the given name it executes it, passes the arguments of the &URL; and sets the environment variables needed by CGI programs.