Using BaseHTTPServer.BaseHTTPRequestHandler
Lars von Wedel
lvw at lfpt.rwth-aachen.de
Fri Jul 28 10:55:11 EDT 2000
More information about the Python-list mailing list
Fri Jul 28 10:55:11 EDT 2000
- Previous message (by thread): Perl is worse! (was: Python is Wierd!)
- Next message (by thread): Using BaseHTTPServer.BaseHTTPRequestHandler
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello, I have built a standalone HTTP server using the class BaseHTTPServer.BaseHTTPRequestHandler from which I derived my own handler. My main focus is on the do_GET() method, in which I disassemble the self.path variable that has been preprocessed into the query arguments (using cgi.parse_qs). My problem is that when I print a header with a 'Content-type', the corresponding line appears in the browser client, so obviously somebody printed the header before. That way, I can only output html pages, which is not what I want. However, I cannot find any class involved that could cause this. Who knows help? Regards, Lars
- Previous message (by thread): Perl is worse! (was: Python is Wierd!)
- Next message (by thread): Using BaseHTTPServer.BaseHTTPRequestHandler
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list