Serving html and python cgi through BaseHTTPServer.py

Mads Nielsen madsovenielsen at gmail.com
Wed Apr 22 07:03:39 EDT 2009


Hello all.

im tinkering with some beginner cgi stuff in python. (form processing)
i have a basic html document with a form and some inputs and i have a cgi.py
file to process the form.

how does one serve html and python cgi through the BaseHTTPServer included
with python 2.6 ?

i have tried to go to http://localhost:8000/index.html but no go. i get a
Error response 501 Unsupported method ('GET').

/mads
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090422/80977893/attachment.html>


More information about the Python-list mailing list