Read input in do_POST() method (was: embeddable Python web server)
Michael Ströder
michael.stroeder at inka.de
Sat Feb 19 16:04:04 EST 2000
Michael Ströder wrote:
>
> Running through own do_POST() method in a web server class derived
> from SimpleHTTPServer.SimpleHTTPRequestHandler:
>
> self.rfile.read(contentlength) works with lynx, w3m, but Netscape
> 4.7 hangs.
>
> self.rfile.readline() works with w3m, Netscape 4.7, but lynx hangs.
>
> Can anyone shed light on this?!?
This turned out to be a platform-specific problem. On my S.u.S.E.
6.3 based system I had the problems. On a Debian-Linux the cleaner
self.rfile.read(contentlength) works. I'll stick to that (module cgi
does the same).
Ciao, Michael.
More information about the Python-list
mailing list