CGI/HTML forms in a standalone application.
moshez at math.huji.ac.il
Fri Feb 18 14:09:07 CET 2000
On Fri, 18 Feb 2000, Michael [iso-8859-1] Ströder wrote:
> > 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?
Yes: you have to close the associated file object, which you get as an
attribute of the class in the .handle() method.
Moshe Zadka <mzadka at geocities.com>.
INTERNET: Learn what you know.
Share what you don't.
More information about the Python-list