Jetty Logo
Version: 9.4.26-SNAPSHOT
Contact the core Jetty developers at

private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services for sponsored feature development

CGI Servlet




The CGI servlet class extends the abstract HttpServlet class. When the init parameter is called, the cgi bin directory is set with the cgibinResourceBase. Otherwise, it defaults to the resource base of the context.

The cgi bin uses three parameters:

The init parameter obtained when there is a prefix set to all commands directed to the method exec.
An init parameter passed to the exec environment as a PATH. This must be run unpacked somewhere in the filesystem.
An init parameter that points to an environment variable with the name stripped of the leading ENV_ and using the init parameter value.

See an error or something missing? Contribute to this documentation at Github!(Generated: 2020-01-17)