CGI/HTML forms in a standalone application.

Michael Ströder michael.stroeder at inka.de
Fri Feb 18 12:32:00 CET 2000


Moshe Zadka wrote:
> 
> On Mon, 14 Feb 2000 bayinnaung at my-deja.com wrote:
> 
> > that can also be used as a non-web/standalone application
> > on a single/PC.
> >
> > Can you use a kind of dummy server to simulate the CGI on a single
> > machine.
> 
> You can derive a class from SimpleHTTPRequestHandler, copy some code from
> CGIHTTPRequestHandler and come up with a class
> CGILikePythonFunctionHTTPRequestHandler

I did this and it works as expected except that the browser does not
stop loading. Do I have to close a socket or associated file?

Ciao, Michael.



More information about the Python-list mailing list