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:
http://www.w3.org/Protocols/rf
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'
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
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.
Cre
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 C
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
>
> c
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):