[Python-de] premature end of script of script headers...
helmut_blass at web.de
helmut_blass at web.de
Di Aug 20 08:17:10 CEST 2013
Am Dienstag, 20. August 2013 06:41:42 UTC+2 schrieb Karsten Schulz:
> liefert Dein Script einen MIME Header auf stdout getrennt mit einer Leerzeile vom Content?
that's the code:
#!/usr/bin/python
# Debugging fuer CGI-Skripte 'einschalten'
import cgitb;
cgitb.enable()
print('Content-type: text/html\r\n')
print('\r\n')
print('Hello, World!')
Die Leerzeilen werden bei Aufruf in Konsole korrekt ausgegeben.
> Hilfreich ist manchmal auch das Apache CGI-Tutorial auf <http://httpd.apache.org/docs/2.2/howto/cgi.html>
...alles schon durchgeackert. Fehler kommt trotzdem ;-(
Gruss, Helmut
Mehr Informationen über die Mailingliste python-de