small python cgi webserver
Norbert Kaufmann
norbert at akumakun.de
Sun Nov 5 06:40:54 EST 2006
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/rfc2616/rfc2616-sec6.html#sec6
As you may see you separate the header of a response from the body by an
empty line, generated with CRLF.
Since one CRLF ends the line inside the header you need two of them.
Bye
Norbert
More information about the Python-list
mailing list