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:
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):
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
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
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
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
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