simple cgi 'system'?

Andrew Clover and-google at doxdesk.com
Thu Feb 26 11:00:14 EST 2004


gabor <gabor at z10n.net> wrote:

> i know about the cgi module, but most of times i need something a little
> higher level.

The cgi module is slightly mis-named. It's for reading in HTML form
submissions. You don't need to use it to write a CGI script if you're
just going to return a 503 anyway.

The 'print all the header stuff manually' solution:

  #!/path/to/python
  print 'Status: 503 Service Unavailable'
  print

There isn't a particular module to simplify writing this sort of script
as it is already completely trivial!

-- 
Andrew Clover
mailto:and at doxdesk.com
http://www.doxdesk.com/



More information about the Python-list mailing list