Re: small python cgi webserver

2006-11-05 Thread Norbert Kaufmann
Fabian Braennstroem wrote: [...] In your response (cgi-script) you have to divide the header from the content '\r\n\r\n'. I am not sure, what that means!? ... but it works :-) We are talking about HTTP, take a look at the HTTP response in version 1.1:

small python cgi webserver

2006-11-04 Thread Fabian Braennstroem
Hi, I am looking for a small python script, which starts a small web server with python cgi support on a linux machine. I tried: #!/usr/bin/env python import sys from CGIHTTPServer import CGIHTTPRequestHandler import BaseHTTPServer class MyRequestHandler(CGIHTTPRequestHandler):

Re: small python cgi webserver

2006-11-04 Thread ArdPy
Fabian Braennstroem wrote: Hi, I am looking for a small python script, which starts a small web server with python cgi support on a linux machine. I tried: #!/usr/bin/env python import sys from CGIHTTPServer import CGIHTTPRequestHandler import BaseHTTPServer class

Re: small python cgi webserver

2006-11-04 Thread Fabian Braennstroem
Hi, * ArdPy [EMAIL PROTECTED] wrote: Fabian Braennstroem wrote: Hi, I am looking for a small python script, which starts a small web server with python cgi support on a linux machine. I tried: #!/usr/bin/env python import sys from CGIHTTPServer import CGIHTTPRequestHandler

Re: small python cgi webserver

2006-11-04 Thread Norbert Kaufmann
Fabian Braennstroem wrote: [...] Maybe, I understood something wrong, but I thought that the above 'webserver' script would replace apache in my case; at least I hoped!? It does. The 'ServerRoot' and 'DocumentRoot' directories are the directories you are starting your webserver in. Create

Re: small python cgi webserver

2006-11-04 Thread ArdPy
Fabian Braennstroem wrote: Hi, * ArdPy [EMAIL PROTECTED] wrote: Fabian Braennstroem wrote: Hi, I am looking for a small python script, which starts a small web server with python cgi support on a linux machine. I tried: #!/usr/bin/env python import sys from

Re: small python cgi webserver

2006-11-04 Thread Fabian Braennstroem
Hi Norbert, * Norbert Kaufmann [EMAIL PROTECTED] wrote: Fabian Braennstroem wrote: [...] Maybe, I understood something wrong, but I thought that the above 'webserver' script would replace apache in my case; at least I hoped!? It does. The 'ServerRoot' and 'DocumentRoot' directories are