I've used the BaseHTTPServer class a bit and eventually stopped because
it seemed to be blocking with no hope of fixing it as far as I could
tell. For example, start the server, telnet to port 80 or whatever and
while that connection is open, try loading a page. I ended up having to
use the AsyncChat stuff and implementing it from scratch in order to
On Sun, 2002-04-28 at 20:09, Geoffrey Talvola wrote:
> Ian Bicking wrote:
> > With talk of a mini-Apache, patches to Application to get it to serven
> > HTTP, and all that, I thought I'd try a strategy I brought up earlier,
> > but which no one seemed very excited about: an HTTP-serving adapter.
> > I'd been working with BaseHTTPServer already (included with
> > Python), and
> > it was surprisingly easy. 1 hour later:
> > http://www.colorstudy.net/software/webware/HTTPAdapter.py
> > With a little testing I see no reason this couldn't be included with
> > Webware, providing the mini-HTTP-server that is sometimes brought up.
> > Maybe (maybe) not as elegant as having Application serve HTTP
> > directly,
> > but it's simple, short (160 lines), and guaranteed not to have any
> > adverse effect on anything else in Webware, since it touches nothing
> > else.
> Ian, I finally tried your HTTPAdapter.py. Nice -- I'd like to include this
> in Webware, probably in an Experimental subdirectory.
> One thing that didn't seem to work properly though was the FileUpload example
> servlet. Instead of uploading the file, it just returns the same page when
> you press the submit button. Any idea why this doesn't work?
> - Geoff
> Webware-discuss mailing list