BaseHTTPServer weirdness
Ron Garret
rNOSPAMon at flownet.com
Tue Sep 12 01:33:31 EDT 2006
In article <mailman.306.1158021619.5279.python-list at python.org>,
Steve Holden <steve at holdenweb.com> wrote:
> Ron Garret wrote:
> > In article <mailman.294.1158010161.5279.python-list at python.org>,
> > Steve Holden <steve at holdenweb.com> wrote:
> >
> >
> >>But basically, you aren't providing a CGI environment, and that's why
> >>cgi.parse() isn't working.
> >
> >
> > Clearly. So what should I be doing? Surely I'm not the first person to
> > have this problem?
> >
> > I have managed to work around this for now by copying and modifying the
> > code in cgi.parse, but this still feels like a Horrible Hack to me.
> >
> Let me get this right. You are aware that CGIHTTPServer module exists.
> But you don't want to use that.
That's right. I don't want to run CGI scripts. I don't want to launch
a new process for every request. I want all requests handled in the
server process.
> Instead you want to use your own code.
No, the whole reason I'm asking this question is because I *don't* want
to write my own code. It seems to me that the code to do what I want
ought to be out there (or in there) somewhere and I shouldn't have to
reinvent this wheel. But I can't find it.
> So you have ended up duplicating some of the functionality of the cgi
> library. And it feels like a hack.
Yep.
rg
More information about the Python-list
mailing list