[docs] Setting a python cgi-bin web service - 2
Renato Battistin
rbattistin at apf.it
Sun Jan 11 12:13:03 CET 2015
Hello (again),
I am sorry, was my mistake!
I used the 3.3 docs instead of the 2.7 ones
Regards
Renato
===============
PREVIOUS MESSAGE:
Hello,
I don't known if it is a bug, but the following script example at
https://docs.python.org/3.3/howto/webservers.html created me some
problems during the setting of an apache2 cgi-bin python script service:
--------------------
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# enable debugging
import cgitb
cgitb.enable()
print("Content-Type: text/plain;charset=utf-8")
print()
print("Hello World!")
----------------
I solved the problem changing the above script to:
--------------------
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# enable debugging
import cgitb
cgitb.enable()
print "Content-Type: text/plain;charset=utf-8"
print
print "Hello World!"
----------------
I used Python 2.7
Regards
Renato Battistin
FERMO POSTA
I-31041 CORNUDA TV
ITALY
More information about the docs
mailing list