################
#  cgigetpost  #
################

Version: 1.0
Author:  vodoo <at> vakw <dot> ch
Licence: GPLv3

Simple program written in C to read POST data from Apache.
Its main use is in a CGI script written in bash.

Installation:

1. Get the source tarball and copy it to a convenient directory.
   wget http://www.lawbiz.ch/pastebin/cgigetpost-1.0.tar.gz

2. Unpack:
   tar xvzf cgigetpost-1.0.tar.gz

3. Compile (as normal user):
   make

4. Install:
   su -c 'make install'

   The default installation directory is /usr/bin. For something
   else please edit the Makefile. To remove the program use
   su -c 'make uninstall'.

Usage:

Within your CGI shell script call cgigetpost to get POST form data:

if test "$REQUEST_METHOD" == "POST" ; then
        QUERY_STRING=$(/usr/bin/cgigetpost $CONTENT_LENGTH)
fi

Then all input is in variable QUERY_STRING ready to be parsed.
For an example see example.cgi.

Note openSUSE:

The packaged rpm will provide a copy of example.cgi and dismime.sed
in /usr/share/doc/packages/cgigetpost
