libcgic-dev - C library for developing CGI applications

Distribution: Debian 8 (Jessie)
Repository: Debian Main amd64
Package name: libcgic-dev
Package version: 2.05
Package release: 3
Package architecture: amd64
Package type: deb
Installed size: 194 B
Download size: 52.36 KB
Official Mirror:
Cgic is an ANSI-C library for the creation of CGI-based World Wide Web applications. Cgic provides the following: * Parses form data, correcting for defective and/or inconsistent browsers * Transparently accepts both GET and POST form data * Handles line breaks in form fields in a consistent manner * Provides string, integer, floating-point, and single- and multiple-choice functions to retrieve form data * Provides bounds checking for numeric fields * Loads CGI environment variables into C strings which are always non-null * Provides a way to capture CGI situations for replay in a debugging environment This package provides a static library version of cgic, examples of using cgic (including a CGI application that captures a CGI environment for use in debugging), and header files.



  • libcgicg1-dev


  • libcgicg1-dev


    Source package: libcgic

    Install Howto

    1. Update the package index:
      # sudo apt-get update
    2. Install libcgic-dev deb package:
      # sudo apt-get install libcgic-dev


    • /usr/include/cgic.h
    • /usr/lib/libcgic.a
    • /usr/lib/
    • /usr/share/doc/libcgic-dev/cgic.html
    • /usr/share/doc/libcgic-dev/changelog.Debian.gz
    • /usr/share/doc/libcgic-dev/copyright
    • /usr/share/doc/libcgic-dev/examples/capture.c
    • /usr/share/doc/libcgic-dev/examples/cgictest.c.gz


    2012-05-13 - Bart Martens <> libcgic (2.05-3) unstable; urgency=low * debian/control: Suggests: httpd. Closes: #600138. * debian/control: Fixed debhelper-but-no-misc-depends.

    2008-07-13 - Bart Martens <> libcgic (2.05-2) unstable; urgency=low * debian/control: Standards-Version, Homepage.

    2007-08-19 - Bart Martens <> libcgic (2.05-1) unstable; urgency=low * New maitnainer. Closes: #438643. * New upstream release. * debian/*: Repackaged with cdbs. * debian/changelog-upstream.html: Removed. * debian/Makefile.examples: Removed. * debian/README.Debian: Removed. * debian/copyright: Updated. * debian/watch: Updated.

    2003-01-24 - Colin Watson <> libcgic (1.07-3) unstable; urgency=low * Policy version 3.5.8: - CFLAGS now always contains -g; DEB_BUILD_OPTIONS=debug just adds -DCGICDEBUG. - Support DEB_BUILD_OPTIONS=noopt to build without optimizations. - Drop /usr/doc symlink. * Use debhelper in version 3 mode. * Suggest libgd1-noxpm and libgd-noxpm-dev as real alternatives for the virtual packages libgd1 and libgd-dev respectively.

    2001-09-16 - Colin Watson <> libcgic (1.07-2) unstable; urgency=low * debian/rules: Use dpkg-parsechangelog rather than parsing `pwd`. Other cleanups. * Policy version 3.5.6.

    2001-02-07 - Colin Watson <> libcgic (1.07-1) unstable; urgency=low * New maintainer (closes: #68591). * New upstream release: - Fixed a fencepost error causing various functions to return cgiFormTruncated if the returned string fit the buffer exactly. * Standards-Version: 3.5.0: - Build dependencies. - Support DEB_BUILD_OPTIONS. - Don't install shared libraries executable (though dh_fixperms fixed this anyway). - The postinst of libcgicg1 didn't have a debhelper token, so the /usr/doc link got lost. Fixed. - Added postrm with missing ldconfig call (triggers lintian bug #82479). * Build with debhelper v2. * Build libraries with -D_REENTRANT, as per policy (Does anyone actually use threaded CGI scripts?) * Removed old libc5 packages libcgic1 and libcgic1-altdev, and got rid of the consequent cruft from debian/rules (to all intents and purposes this closes: #74254, especially since the libgd development packages for libc5 have also been dropped; also see the next changelog entry). * Use new names of libgd packages (libgd1 and libgd-dev) (closes: #74212). * Moved support.txt to the runtime package. * Constructed an upstream changelog from cgic.html. * Removed unnecessary call to dh_suidregister. * Other miscellaneous packaging cleanups. * Correctly prototype cgiMain() (closes: #77544). * Applied Ian Jackson's suggestions for cgic-capture (closes: #77652): - Change all /tmp references to use the current directory instead. Added documentation that the current directory needs to be writeable. - Revert an earlier Debian patch which coped with the security issues of writing into /tmp by opening with O_WRONLY | O_CREAT | O_EXCL. Since a CGI script's current directory may reasonably be assumed to be secure, this isn't necessary. - Since capture is far from the best way to debug CGI scripts, we don't ship it as a separate package any more. Instead, install it as one of the examples in libcgicg1-dev, like cgictest.c; those who need it for debugging can compile it themselves, since they must be doing the same for the script they're debugging anyway. An abridged copy of the main Makefile is provided. - Check return code of cgiReadEnvironment() and cgiWriteEnvironment() in cgictest.c and capture.c respectively. * Fix format string in cgictest.c (%s -> %d).

    1999-11-25 - Torsten Landschoff <> libcgic (1.06-4) unstable; urgency=low * Debian QA upload. * debian/rules: Build libc5 packages conditionally (closes: #51181).