Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- #!C:\Python27\Python.exe
- # enable debugging
- import cgitb
- cgitb.enable()
- import sys
- sys.stderr = sys.stdout
- print ('Content-type: text/html\r\n\r')
- print
- print ('<html><body><div style="color:blue;">Hello World!</div></body></html>')
- #you need to save it with .cgi extension and save in cgi-bin folder
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement