Dan Buch is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

meatballhat / CPythonDemosCGI

The CPython "Demos/cgi" directory

Clone this repository (size: 19.4 KB): HTTPS / SSH
hg clone https://bitbucket.org/meatballhat/cpythondemoscgi
hg clone ssh://hg@bitbucket.org/meatballhat/cpythondemoscgi

CPythonDemosCGI overview

Recent commits See more »

.. Prerequisites to launch the demo server are a reasonably modern version
.. of the lighttpd server and the python docutils distribution.

.. To start the demo, just invoke ``make``.



CGI Examples
------------

Here are some fairly simple example CGI programs.
For a larger example, see the FAQ wizard application in
``../../Tools/faqwiz/``.

- cgi0.sh_: A shell script to test that your server is configured for CGI
- cgi1.py_: A Python script to test that your server is configured for CGI
- cgi2.py_: A Python script showing how to parse a form
- cgi3.py_: A minimal Python Wiki implementation with data persistence


For further reference, be sure to `check the python.org wiki`_.


.. _cgi0.sh: cgi0.sh
.. _cgi1.py: cgi1.py
.. _cgi2.py: cgi2.py
.. _cgi3.py: cgi3.py
.. _check the python.org wiki:
    http://wiki.python.org/moin/?action=fullsearch&value=CGI&titlesearch=Titles

.. vim:filetype=rst