Hypertriton, Inc. Hypertriton, Inc.
( Francais )
HOME | DOWNLOAD | PORTABILITY | AUTHOR | BUGZILLA
What is PerCGI?

The PerCGI library facilitates the development of persistent, high-performance applications in C/C++ (bindings to other languages are under development) using the Common Gateway Interface. Traditional and FastCGI execution modes are both supported (the latter is recommended). The aim of PerCGI is to provide a convenience and speed of development comparable to that of languages such as PHP or Perl, without the inevitable interpretation overhead associated with them. A PerCGI application executes several times faster than even the most optimized PHP, Perl or Python script.

The main features of the PerCGI library include:

  • Argument processing and validation
  • Modular query interface (not unlike servlets)
  • HTTP Content negotiation
  • Multiple languages and character set support
  • Content-specific input/output filters
  • HTTP cookie interface
  • Session management / authentication
  • HTML preprocessing / generation
  • Utility functions (e.g., string, table and sorting routines)

An important feature of PerCGI for typical web applications is the mixing of dynamic and offline HTML output generation. Parts of HTML output is generated programmatically and parts are generated from static HTML documents and fragments which are preprocessed from templates and precompiled into variants for all supported languages and character sets. Source HTML documents can also reference variables which will be substituted dynamically by PerCGI.

Sample applications
  • OpenMGI includes a interface which uses PerCGI (and is meant to be used under FastCGI). The application maintains persistent connections to remote OpenMGI servers over a Unix socket or TCP connection.
  • mail.fcgi is a simple mailer application that sends e-mail to specific recipients, without disclosing the e-mail addresses to potential spammers (a private databases matches keys with e-mail addresses).
  • feed.fcgi is designed for announcements, news feeds and blogs. It provides HTML and RSS interfaces.
  • rfq.fcgi is a "Request for Quote" generator for manufacturers of specific kinds of parts.
News
07/06/2005 New stable release: csoft-cgi-1.0 (Stable)
[Minor bug fixes; added support for HTTP cookies.]
12/31/2003 New beta: csoft-cgi-12312003 (MD5) (PGP)